Skip to content

Instantly share code, notes, and snippets.

@marshallswain
Last active November 24, 2021 10:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallswain/e13ba5158fdb608985acedf383377bef to your computer and use it in GitHub Desktop.
Save marshallswain/e13ba5158fdb608985acedf383377bef to your computer and use it in GitHub Desktop.
Another example of feathers-mongoose upserting
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