You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @JKHeadley
I need to make association with multiple field, so is there any way to define association with more than one model?.
example:
my schema is like this:
masterField: [{
I don't believe what you are trying to do will work with the regular $embed query. However you might be able to accomplish this with a solution similar to the one posted in #31.
If this turns out to be too much trouble, it would probably be easier to split up/add more models (and associate them) rather than trying to encapsulate all the relationships into one field.
Hi, @JKHeadley
I need to make association with multiple field, so is there any way to define association with more than one model?.
example:
my schema is like this:
masterField: [{
}]
associations: {
type:.............?
model:...........?
}
How can i associate abc and xyz model with masterField so that i can embed masterField to populate abc and xyz ?
The text was updated successfully, but these errors were encountered: