TinaCMS GraphQL API
TinaCMS generates a GraphQL Content API from your schema definitions in `tina/config.ts`. The API exposes every content collection you define as both single-document queries (`
Overview
TinaCMS GraphQL API is a GraphQL API specification published by TinaCMS on the APIs.io network.
TinaCMS generates a GraphQL Content API from your schema definitions in tina/config.ts. The API exposes every content collection you define as both single-document queries (<collection>(relativePath: String!)) and paginated list queries (<collection>Connection(...)) following the Relay cursor-based pagination specification. Built-in root fields include node, document, collection, and collections for cross-collection access. All documents implement the Node and Document interfaces, carrying a system metadata field _sys (filename, path, breadcrumbs, extension, template, collection) alongside their user-defined fields.
The GraphQL endpoint is available at https://content.tinajs.io/1.0/content/{clientId}/github/{branch}. documentation is published at https://tina.io/docs/graphql/overview.
The specification includes 5 reference links.
Tagged areas include CMS, Headless CMS, Git, Content Management, and Visual Editing.
Endpoint
References
- Documentation https://tina.io/docs/graphql/overview
- GettingStarted https://tina.io/docs/setup-overview
- Queries https://tina.io/docs/graphql/queries/query-documents
- Mutations https://tina.io/docs/graphql/queries/update-document
- Schema Reference https://tina.io/docs/reference/schema