Skip to content

Many to many: How to access relation properties? #466

@pfirpfel

Description

@pfirpfel

Hello there!

From: https://github.com/dresende/node-orm2#hasmany

Patient.hasMany('doctors', Doctor, { why: String }, { reverse: 'patients' });
Patient.sync();

[...]

patient.addDoctor(surgeon, {why: "remove appendix"}, function(err) {} )

How could I access the 'why'-property in this case? I can't seem to find it in the documentation.

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions