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