Last active
July 8, 2017 04:08
-
-
Save marshallswain/af280e77b2587cd0f90b97136b2c4abb to your computer and use it in GitHub Desktop.
Upserting with feathers-mongoose's `patch` method
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: '1', identifier: 'some-identifier' } | |
const params = { | |
query: { address: '1' }, | |
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