From 55966821c904f75847ce9b02bdc8827f49ea6a80 Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Tue, 17 Mar 2020 22:51:45 +0100 Subject: [PATCH] chore(schema): grammar --- src/schema.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)