Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
chore(schema): grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Mar 17, 2020
1 parent b64be97 commit 5596682
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ const addDirectives = (schema) => {
if (operation === 'Mutation') {
const next = field.resolve
field.resolve = (object, params, context, info) => {
// verify request with a generated scope, for example given the following query:
// Verify request with a generated scope, for the following query:
//
// ```graphql
// mutation {
// CreatePerson(...) {
// identifier
// }
// }
// ```
//
// will result in the following scope: `Mutation:Person:Create`.
// The scope will be: `Mutation:Person:Create`.
verifyRequest(context, generateScope(operation, fieldName))

return next(object, params, context, info)
Expand Down

0 comments on commit 5596682

Please sign in to comment.