UNPKG

@graphql-tools/federation

Version:

Useful tools to create and manipulate GraphQL schemas.

11 lines (10 loc) 740 B
import { GraphQLSchema, SelectionSetNode, TypeNode } from 'graphql'; export declare function getArgsFromKeysForFederation(representations: readonly any[]): { representations: readonly any[]; }; export declare function getKeyForFederation<TRoot>(root: TRoot): TRoot; export declare function projectDataSelectionSet(data: any, selectionSet?: SelectionSetNode): any; export declare function getKeyFnForFederation(typeName: string, keys: string[]): (root: any) => any; export declare function getCacheKeyFnFromKey(key: string): (root: any) => any; export declare function filterInternalFieldsAndTypes(finalSchema: GraphQLSchema): GraphQLSchema; export declare function getNamedTypeNode(typeNode: TypeNode): import("graphql").NamedTypeNode;