@graphql-tools/relay-operation-optimizer

Functions#

Type aliases#

OptimizeDocumentsOptions#

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

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

Functions#

optimizeDocuments#

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

Parameters:#

NameTypeDefault value
schemaGraphQLSchema-
documentsDocumentNode[]-
optionsOptimizeDocumentsOptions...

Returns: DocumentNode[]

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