simple-graphql
Version:
The simple way to generates GraphQL schemas and Sequelize models from your models definition.
15 lines (14 loc) • 384 B
TypeScript
import { SGModel, SGModelCtrl } from '../../index';
type Selection = {
namedType?: string;
name: string;
selections?: Array<Selection>;
};
export default function <M extends SGModel>(this: SGModelCtrl<M>, args: {
attributes: Array<string>;
selections?: Array<Selection>;
}): {
attributes: Array<string>;
additionSelections: Array<Selection>;
};
export {};