diff --git a/services/graphql-server/src/graphql/operation-logger.js b/services/graphql-server/src/graphql/operation-logger.js index 06f090c93..0006a9f65 100644 --- a/services/graphql-server/src/graphql/operation-logger.js +++ b/services/graphql-server/src/graphql/operation-logger.js @@ -159,7 +159,7 @@ class GraphQLOperationLogger { ...data.request, }, }, { upsert: true }) : Promise.resolve(), - data.request.variables ? collection.variables.updateOne({ + data.request.variables && !config.disableRequests ? collection.variables.updateOne({ _id: variableHash, }, { $addToSet: {