Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Do not store graphql variables when requests are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zarathustra323 committed Sep 30, 2024
1 parent 73d9da4 commit 2a8ce57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/graphql-server/src/graphql/operation-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 2a8ce57

Please sign in to comment.