UNPKG

graphql-gene

Version:

Generates automatically an executable schema out of your ORM models

3 lines (2 loc) 639 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{}function i(e,n){return n}function t(e){return e}function r(e){return e}function u(e,n){return{...e,...typeof n<"u"&&{geneConfig:i({},n)}}}function d(e){return{...e,geneConfig:i({},{varType:"input"})}}function c(e){return e}function l(e){const n={};return e.forEach(f=>n[f]=""),{...n,geneConfig:i({},{varType:"union"})}}exports.GeneModel=o;exports.defineDirective=t;exports.defineEnum=c;exports.defineField=r;exports.defineGraphqlGeneConfig=i;exports.defineInput=d;exports.defineType=u;exports.defineUnion=l; //# sourceMappingURL=defineConfig.cjs.map