UNPKG

graphile-settings

Version:
21 lines (20 loc) 1.23 kB
"use strict"; /** * PostGraphile v5 Meta Schema Plugin * * Exposes a `_meta` GraphQL query that provides metadata about tables, fields, * constraints, indexes, and relations for code generation tooling. */ Object.defineProperty(exports, "__esModule", { value: true }); exports._cachedTablesMeta = exports._buildFieldMeta = exports._pgTypeToGqlType = exports.MetaSchemaPreset = exports.MetaSchemaPlugin = void 0; const cache_1 = require("./meta-schema/cache"); Object.defineProperty(exports, "_cachedTablesMeta", { enumerable: true, get: function () { return cache_1.cachedTablesMeta; } }); const plugin_1 = require("./meta-schema/plugin"); Object.defineProperty(exports, "MetaSchemaPlugin", { enumerable: true, get: function () { return plugin_1.MetaSchemaPlugin; } }); const type_mappings_1 = require("./meta-schema/type-mappings"); Object.defineProperty(exports, "_buildFieldMeta", { enumerable: true, get: function () { return type_mappings_1.buildFieldMeta; } }); Object.defineProperty(exports, "_pgTypeToGqlType", { enumerable: true, get: function () { return type_mappings_1.pgTypeToGqlType; } }); exports.MetaSchemaPreset = { plugins: [plugin_1.MetaSchemaPlugin], }; exports.default = plugin_1.MetaSchemaPlugin;