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
type: 'NotFound',
data: {
message: 'model (id=2) is not a child of model (id=3). If you want to relate it, use the relate option. If you want to insert it with an id, use the insertMissing option',
dataPath: [ 'departments', 0 ]
},
Im certainly doing something wrong but cant figure out what.
Thanks.
The text was updated successfully, but these errors were encountered:
I don't know, but it seems to me, that this repo is kinda dead.
I have also issues with manytoMany Asso. (posted it in discussion).
There are really lacking some "real-world" full-examples of best-practice done with feathers/Objection and relations.
Or is there another, better place to ask for? (forum?)
You can check the tests for more examples. Also, a lot of the info is in Objection website, so you search examples there as well.
I'm not using Feathers for almost a year now, which makes it difficult to continue and working on this project, hence it will progress with PR for the most part in order to add new features.
The project has an extensive test coverage and is used in production within many companies, so it is considers to be very stable.
Hi,
I have 2 models, User and Department, with a third model (UserDepartment) being the join table of both in a many to many relation.
I am able to add a new Department to an User but Im not able to assign an already existing Department to an User.
UserModel:
DepartmentModel:
UserDepartmentModel:
This is what I do to create a new department on the fly and add it to an User:
It returns the User fields with an array departments containing the newly created Department
And this is what Im tryin to do to add an existing Department:
Which fails to this:
Im certainly doing something wrong but cant figure out what.
Thanks.
The text was updated successfully, but these errors were encountered: