Documentation
API Reference
Packages
relay-operation-optimizer

@graphql-tools/relay-operation-optimizer

Type Aliases

Functions

Type Aliases

OptimizeDocumentsOptions

Ƭ OptimizeDocumentsOptions: SchemaPrintOptions & ParseOptions & { includeFragments?: boolean }

Defined in

packages/relay-operation-optimizer/src/index.ts:19

Functions

optimizeDocuments

optimizeDocuments(schema, documents, options?): DocumentNode[]

Parameters

NameType
schemaGraphQLSchema
documentsDocumentNode[]
optionsOptimizeDocumentsOptions

Returns

DocumentNode[]

Defined in

packages/relay-operation-optimizer/src/index.ts:24