Graphile Meta Schema is a PostGraphile plugin (v1.1.1) that dynamically introspects and serves PostgreSQL meta-information (tables, columns, constraints, etc.) as a GraphQL schema. It enables runtime inspection of database structure via GraphQL queries. Released by Constructive, it targets developers building admin UIs or dynamic data tools on PostGraphile. Unlike static schema introspection, it provides a real-time, queryable meta-layer that updates as the database changes. Ships TypeScript types. Current stable version: 1.1.1 (no frequent releases).
npm install graphile-meta-schemaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a PostGraphile server with the MetaSchemaPlugin to expose database meta-information via GraphQL.
Ensure you are running PostGraphile and the plugin is added to appendPlugins.
Use graphileBuildOptions.metaSchema instead of metaSchemaName.
Grant SELECT on all tables in pg_catalog and information_schema to the database user, or use a superuser.
If upgrading from <1.0.0, use import MetaSchemaPlugin from 'graphile-meta-schema' instead of calling makeMetaSchemaPlugin().
Consider caching or limiting the introspection to required schemas.
Run `npm install graphile-meta-schema` or `yarn add graphile-meta-schema`.
Change import to `import MetaSchemaPlugin from 'graphile-meta-schema'`.
Use graphileBuildOptions.metaSchema instead.
Ensure user has SELECT on pg_catalog and information_schema, or run the plugin with a superuser.