graphile-settings
Version:
graphile settings
20 lines (19 loc) • 841 B
TypeScript
/**
* PostGraphile v5 Meta Schema Plugin
*
* Exposes a `_meta` GraphQL query that provides metadata about tables, fields,
* constraints, indexes, and relations for code generation tooling.
*/
import type { GraphileConfig } from 'graphile-config';
import { cachedTablesMeta } from './meta-schema/cache';
import { MetaSchemaPlugin } from './meta-schema/plugin';
import { buildFieldMeta, pgTypeToGqlType } from './meta-schema/type-mappings';
export { MetaSchemaPlugin };
export declare const MetaSchemaPreset: GraphileConfig.Preset;
/** @internal Exported for testing only */
export { pgTypeToGqlType as _pgTypeToGqlType };
/** @internal Exported for testing only */
export { buildFieldMeta as _buildFieldMeta };
/** @internal Exported for testing only */
export { cachedTablesMeta as _cachedTablesMeta };
export default MetaSchemaPlugin;