node_modules/@graphql-tools/utils/index.cjs.js
/**
 * Determines if a field should be included based on the @include and @skip
 * directives, where @skip has higher precedence than @include.
 */
Determines if a field should be included based on the @include and @skip
directives, where @skip has higher precedence than @include.
Determines if a field should be included based on the @include and @skip directives where @skip has higher precedence than @include .
function shouldIncludeNode(exeContext, node) {
    const skip = graphql.getDirectiveValues(graphql.GraphQLSkipDirective, node, exeContext.variableValues);
    if ((skip === null || skip === void 0 ? void 0 : skip.if) === true) {
        return false;
    }
    const include = graphql.getDirectiveValues(graphql.GraphQLIncludeDirective, node, exeContext.variableValues);
    if ((include === null || include === void 0 ? void 0 : include.if) === false) {
        return false;
    }
    return true;
}
function shouldIncludeNode ( exeContext , node ) { const skip = graphql . getDirectiveValues ( graphql . GraphQLSkipDirective , node , exeContext . variableValues ) ; if ( ( skip === null || skip === void 0 ? void 0 : skip . if ) === true ) { return false ; } const include = graphql . getDirectiveValues ( graphql . GraphQLIncludeDirective , node , exeContext . variableValues ) ; if ( ( include === null || include === void 0 ? void 0 : include . if ) === false ) { return false ; } return true ; }
Determines if a field should be included based on the @include and @skip
 directives, where @skip has higher precedence than @include.
Determines if a field should be included based on the @include and @skip directives where @skip has higher precedence than @include .