We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I can link one existing item of related model to instance with: instance.__link__model(1, cb);
instance.__link__model(1, cb);
Is it possible to do one call with multiple foreign ids? Or pass array of related instances to it (like linking tags instances to item instance)
The text was updated successfully, but these errors were encountered:
Is it possible to do one call with multiple foreign ids?
@ambrt we support multiple primary key but not foreign key, please check issue #2080 and keep track of further discussion there.
Or pass array of related instances to it (like linking tags instances to item instance)
I believe you are looking for a embedsMany relationship from item to tags, please check our doc for more details: https://docs.strongloop.com/display/LB/Embedded+models+and+relations#Embeddedmodelsandrelations-EmbedsManywithbelongsTo
embedsMany
Sorry, something went wrong.
Ok @jannyHou, thanks for info.
jannyHou
No branches or pull requests
Hi
I can link one existing item of related model to instance with:
instance.__link__model(1, cb);
Is it possible to do one call with multiple foreign ids?
Or pass array of related instances to it (like linking tags instances to item instance)
The text was updated successfully, but these errors were encountered: