Answer the question
In order to leave comments, you need to log in
How will such a moment look like in api?
I want to add a person to a group (in mongo), i.e. assign a person to an array of groups of idgroups and add the reverse id of a person to an array of people in a group, so in api this is how to correctly reflect
/user/:id/addGroup/:id
или
/group/:id/addUser/:id
app.post('запрос', userController.addGroup,groupController.addUser);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question