simple-graphql
Version:
The simple way to generates GraphQL schemas and Sequelize models from your models definition.
5 lines (4 loc) • 354 B
TypeScript
import { FindOptions } from 'sequelize';
import { GraphQLResolveInfo } from 'graphql';
import { SGModel, SGModelCtrl, SGResolveContext } from '../../index';
export default function <M extends SGModel>(this: SGModelCtrl<M>, id: number | string, options: FindOptions, context: SGResolveContext, info: GraphQLResolveInfo, path?: string): Promise<M | null>;