UNPKG

@maktouch/graphql-directive-connection

Version:

Generate relay connections by marking fields with a @connection directive.

9 lines (8 loc) 354 B
import { GraphQLSchema } from 'graphql'; export declare type ConnectionDirectiveOptions = { useCacheControl?: boolean; }; export default function connectionDirective(directiveName: string, options?: ConnectionDirectiveOptions): { connectionDirectiveTypeDefs: string; connectionDirectiveTransform: (schema: GraphQLSchema) => GraphQLSchema; };