graphql-codegen-core
Version:
GraphQL types and code generator based on schema
6 lines (5 loc) • 460 B
TypeScript
import { SelectionSetItem } from '../types';
import { FieldNode, GraphQLSchema, SelectionSetNode, GraphQLNamedType } from 'graphql';
export declare function separateSelectionSet(selectionSet: SelectionSetItem[]): any;
export declare function buildMetadata(schema: GraphQLSchema, fieldNode: FieldNode): SelectionSetItem;
export declare function buildSelectionSet(schema: GraphQLSchema, rootObject: GraphQLNamedType, node: SelectionSetNode): SelectionSetItem[];