Skip to content

Instantly share code, notes, and snippets.

@daffl
Created January 4, 2019 21:30
Show Gist options
  • Save daffl/4a08efe4f27d5c18d475dcdf67724482 to your computer and use it in GitHub Desktop.
Save daffl/4a08efe4f27d5c18d475dcdf67724482 to your computer and use it in GitHub Desktop.
Database adapters: Querying by id
// 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