@graphql-yoga/plugin-defer-stream
Version:
Defer/Stream plugin for GraphQL Yoga.
8 lines (7 loc) • 312 B
text/typescript
import { ASTVisitor, ValidationContext } from 'graphql';
/**
* Stream directive on list field
*
* A GraphQL document is only valid if defer directives are not used on root mutation or subscription types.
*/
export declare function DeferStreamDirectiveOnRootFieldRule(context: ValidationContext): ASTVisitor;