simple-graphql
Version:
The simple way to generates GraphQL schemas and Sequelize models from your models definition.
8 lines (7 loc) • 412 B
TypeScript
import { GraphQLFieldConfigMap } from 'graphql';
import { SGOutputFieldConfig, SGResolverContext, SGTypeContext } from '..';
type Context = SGResolverContext & SGTypeContext;
declare const toGraphQLFieldConfigMap: (name: string, postfix: string, fields: {
[id: string]: SGOutputFieldConfig<any, any, any, any>;
}, context: Context) => GraphQLFieldConfigMap<any, any>;
export default toGraphQLFieldConfigMap;