Skip to content

Commit

Permalink
remove Subscriptions are disabled logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dthyresson committed Aug 9, 2023
1 parent e9c03b2 commit 3a0eef7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/graphql-server/src/createGraphQLYoga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,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

0 comments on commit 3a0eef7

Please sign in to comment.