graphql-codegen-core
Version:
GraphQL types and code generator based on schema
6 lines (5 loc) • 531 B
TypeScript
import { DocumentNode, FragmentDefinitionNode, GraphQLSchema, OperationDefinitionNode } from 'graphql';
import { Document, DocumentFile } from '../types';
export declare function fixAnonymousDocument(documentNode: FragmentDefinitionNode | OperationDefinitionNode): string | null;
export declare function transformDocumentsFiles(schema: GraphQLSchema, documentFiles: DocumentFile[]): Document;
export declare function transformDocument(schema: GraphQLSchema, documentNode: DocumentNode, originalFilePath?: string | null): Document;