UNPKG

graphql-gene

Version:

Generates automatically an executable schema out of your ORM models

47 lines (46 loc) 687 B
class t { } function i(n, e) { return e; } function r(n) { return n; } function u(n) { return n; } function c(n, e) { return { ...n, ...typeof e < "u" && { geneConfig: i({}, e) } }; } function d(n) { return { ...n, geneConfig: i({}, { varType: "input" }) }; } function p(n) { return n; } function l(n) { const e = {}; return n.forEach((o) => e[o] = ""), { ...e, geneConfig: i({}, { varType: "union" }) }; } export { t as GeneModel, r as defineDirective, p as defineEnum, u as defineField, i as defineGraphqlGeneConfig, d as defineInput, c as defineType, l as defineUnion }; //# sourceMappingURL=defineConfig.js.map