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