UNPKG

apollo-schema-extend

Version:

Extends your Apollo Server Express based graphql server with an external graphql source

11 lines (10 loc) 625 B
import { GraphQLResolveInfo, GraphQLSchema, OperationDefinitionNode } from 'graphql'; import { DocumentDefinition } from '../ast'; import { RemapRule } from '../withExternalSchema.types'; /** * Filters the given operation based on the provided schema. * @param operation The operation to be filtered. * @param fragments Available fragments of the query * @param schema The schema to be used for the filtering */ export declare const getFilteredDefinition: (operation: OperationDefinitionNode, resolveInfo: GraphQLResolveInfo, schema: GraphQLSchema, remapRules: Partial<Record<string, RemapRule>>) => DocumentDefinition;