Created
January 4, 2019 21:30
-
-
Save daffl/4a08efe4f27d5c18d475dcdf67724482 to your computer and use it in GitHub Desktop.
Database adapters: Querying by id
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
// Will throw `NotFound` if `companyId` does not match | |
// Even if the `id` is available | |
app.service('/messages').get('<message id>', { | |
query: { companyId: '<my company>' } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment