TinaCMS · GraphQL Specification

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 (`(relativePath: String!)`) and paginated list queries (`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.

Documentation Endpoint View on GitHub CMSHeadless CMSGraphQLGitContent ManagementVisual EditingMarkdownOpen SourceGraphQL

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

https://content.tinajs.io/1.0/content/{clientId}/github/{branch}

References

Related API Specs

TinaCMS GraphQL Content API (OpenAPI)
Back to TinaCMS · All GraphQL Specs · GitHub