Introduction
Core Concepts
Querying Content
Editing
Customizing Tina
Going To Production
Drafts
Guides
Further Reference
Table of Contents

Tina's list queries implement the cursor-based Relay specification. Collection lists can be queried with <collection>Connection.

Example

Here we will query our post collection with postConnection.

{
postConnection {
edges {
node {
id
title
}
}
}
}
{
"data": {
"postConnection": {
"edges": [
{
"node": {
"id": "content/posts/anotherPost.json",
"title": "Just Another Blog Post"
}
},
{
"node": {
"id": "content/posts/nested/anotherPost.json",
"title": "Just Another Blog Post"
}
},
{
"node": {
"id": "content/posts/voteForPedro.json",
"title": "Vote For Pedro"
}
}
]
}
}
}

Last Edited: August 15, 2024