Skip to content

Commit

Permalink
fix: logging errors in graphql-server after cherry pick
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Sep 2, 2023
1 parent 745f868 commit 1032195
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/graphql-server/src/createGraphQLYoga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,9 @@ export const createGraphQLYoga = ({
OperationTypeNode.MUTATION,
]

// now allow subscriptions if using them (unless you override)
// allow subscriptions if using them (unless you override)
if (realtime?.subscriptions?.subscriptions) {
defaultAllowedOperations.push(OperationTypeNode.SUBSCRIPTION)
} else {
logger.info('Subscriptions are disabled.')
}

plugins.push(
Expand Down Expand Up @@ -188,9 +186,7 @@ export const createGraphQLYoga = ({
allowIntrospection,
defaultError,
disableIntrospection,
disableGraphQL,
allowGraphiQL,
graphiql,
graphiQLEndpoint,
},
'GraphiQL and Introspection Config'
Expand Down

0 comments on commit 1032195

Please sign in to comment.