UNPKG

shyft

Version:

Model driven GraphQL API framework

14 lines (13 loc) 728 B
import { GraphQLObjectType, GraphQLSchema } from 'graphql'; import { Configuration } from '../engine/configuration/Configuration'; import { Entity } from '../engine/entity/Entity'; import { EntityMap } from '../engine/schema/Schema'; export declare const getTypeForEntityFromGraphRegistry: (entity: Entity) => { entity: Entity | import("../engine/entity/ViewEntity").ViewEntity; type: GraphQLObjectType<any, any>; connection?: GraphQLObjectType<any, any>; connectionArgs?: unknown; }; export declare const extendModelsForGql: (entities: EntityMap) => void; export declare const registerActions: (actions: any) => void; export declare const generateGraphQLSchema: (configuration: Configuration) => GraphQLSchema;