The Guild LogoThe Guild Monogram
GraphQL Tools

GraphQL Tools

A set of utilities for faster GraphQL development

Get Started

@graphql-tools/relay-operation-optimizer#

Table of contents#

Type aliases#

  • OptimizeDocumentsOptions

Functions#

Type aliases#

OptimizeDocumentsOptions#

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

Defined in#

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

Functions#

optimizeDocuments#

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

Parameters#

NameType
schemaGraphQLSchema
documentsDocumentNode[]
optionsOptimizeDocumentsOptions

Returns#

DocumentNode[]

Defined in#

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