KeystoneJS GraphQL API
KeystoneJS auto-generates a fully typed GraphQL API from its schema definition — every list defined in `keystone.ts` produces a standard set of queries and mutations without any manual resolver writing. The generated schema exposes single-item lookups, paginated list queries with cursor-based and offset pagination, count queries, and both singular and batch create/update/delete mutations for each list. The schema is extended with authentication operations (session management, password-based login, initial user creation) when the `@keystone-6/auth` package is enabled, and developers can add arbitrary custom queries and mutations via the `extendGraphqlSchema` configuration option.
Overview
KeystoneJS GraphQL API is a GraphQL API specification published by KeystoneJS on the APIs.io network.
KeystoneJS auto-generates a fully typed GraphQL API from its schema definition — every list defined in keystone.ts produces a standard set of queries and mutations without any manual resolver writing. The generated schema exposes single-item lookups, paginated list queries with cursor-based and offset pagination, count queries, and both singular and batch create/update/delete mutations for each list. The schema is extended with authentication operations (session management, password-based login, initial user creation) when the @keystone-6/auth package is enabled, and developers can add arbitrary custom queries and mutations via the extendGraphqlSchema configuration option.
The GraphQL endpoint is available at https://your-keystone-app.example.com/api/graphql. documentation is published at https://keystonejs.com/docs/graphql/overview.
The specification includes 7 reference links.
Tagged areas include Headless CMS, Node.js, Content Management, Open Source, and TypeScript.
Endpoint
References
- Documentation https://keystonejs.com/docs/graphql/overview
- GettingStarted https://keystonejs.com/docs/getting-started
- FilteringDocs https://keystonejs.com/docs/graphql/filters
- AccessControl https://keystonejs.com/docs/guides/auth-and-access-control
- ExtendGraphqlSchema https://keystonejs.com/docs/config/config#extend-graphql-schema
- FieldTypes https://keystonejs.com/docs/fields/overview
- GitHubSource https://github.com/keystonejs/keystone