Skip to content
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

Return updated document after successful PUT request #5

Open
0xZakk opened this issue Aug 15, 2019 · 0 comments
Open

Return updated document after successful PUT request #5

0xZakk opened this issue Aug 15, 2019 · 0 comments

Comments

@0xZakk
Copy link

0xZakk commented Aug 15, 2019

When I update a document, I get the original back instead of the updated document. Can you make it so that I get the updated document?

{ $set: { "name": req.body.name } }).then(character => res.json(character)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant