diff --git a/packages/utils/src/validateWithCustomRules.js b/packages/utils/src/validateWithCustomRules.js index 78587bf12e3..63aacea04ef 100644 --- a/packages/utils/src/validateWithCustomRules.js +++ b/packages/utils/src/validateWithCustomRules.js @@ -30,7 +30,10 @@ export function validateWithCustomRules( const { NoUnusedFragments, } = require('graphql/validation/rules/NoUnusedFragments'); - const rulesToSkip = [NoUnusedFragments]; + const { + ExecutableDefinitions, + } = require('graphql/validation/rules/ExecutableDefinitions'); + const rulesToSkip = [NoUnusedFragments, ExecutableDefinitions]; if (isRelayCompatMode) { const { KnownFragmentNames,