diff --git a/src/schema.js b/src/schema.js index 3de7e9a..8b5de40 100644 --- a/src/schema.js +++ b/src/schema.js @@ -23,7 +23,7 @@ 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 { @@ -31,8 +31,9 @@ const addDirectives = (schema) => { // 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)