Last active
November 24, 2021 10:18
-
-
Save marshallswain/e13ba5158fdb608985acedf383377bef to your computer and use it in GitHub Desktop.
Another example of feathers-mongoose upserting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = { address: '2', identifier: 'some-other-identifier' } | |
const params = { | |
query: { address: '2' }, | |
mongoose: { upsert: true } | |
} | |
app.service('address-meta').patch(null, data, params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment