-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
handle hasAndBelongsToMany relations on POST #114
Comments
Yea there are definitely some issues with hasandbelongstomany. Also any use of "through" We ideally need to start with some failing tests and take it from there. Do you have any time to do this? |
Ps thanks for reporting! (and sorry for the slow reply) |
I had some other issues with loopback and decided to write my API from scratch with express since it's a small API. Unfortunately I do not have time to do this. |
@behnoodk how do you send this kind of request? I can only send with the |
When adding a record through POST which has a
hasAndBelongsToMany
with another model, the component is acting strange. I'm thinking even if this is not supported yet, it should not behave this way:So loopback handles the
belongsTo
relationship correctly. but thehasAndBelongsToMany
is behaving strange. first there is nothing in the response and second when I check the db, it has updated the fieldarticleId
of all the included tags to the id of created article. and when a new article is created, thisarticleId
gets overwritten for all the tags provided in the request.The text was updated successfully, but these errors were encountered: