buildSchemaFromSDL.d.ts 668 B

12345678910
  1. import { DocumentNode, GraphQLSchema } from "graphql";
  2. import { GraphQLResolverMap } from "./resolverMap";
  3. export interface GraphQLSchemaModule {
  4. typeDefs: DocumentNode;
  5. resolvers?: GraphQLResolverMap<any>;
  6. }
  7. export declare function modulesFromSDL(modulesOrSDL: (GraphQLSchemaModule | DocumentNode)[] | DocumentNode): GraphQLSchemaModule[];
  8. export declare function buildSchemaFromSDL(modulesOrSDL: (GraphQLSchemaModule | DocumentNode)[] | DocumentNode, schemaToExtend?: GraphQLSchema): GraphQLSchema;
  9. export declare function addResolversToSchema(schema: GraphQLSchema, resolvers: GraphQLResolverMap<any>): void;
  10. //# sourceMappingURL=buildSchemaFromSDL.d.ts.map