@graphql-tools/relay-operation-optimizer
Version:
Package for optimizing your GraphQL operations relay style.
7 lines (6 loc) • 393 B
text/typescript
import { SchemaPrintOptions } from '@graphql-tools/utils';
import { GraphQLSchema, DocumentNode, ParseOptions } from 'graphql';
export declare type OptimizeDocumentsOptions = SchemaPrintOptions & ParseOptions & {
includeFragments?: boolean;
};
export declare function optimizeDocuments(schema: GraphQLSchema, documents: DocumentNode[], options?: OptimizeDocumentsOptions): DocumentNode[];