Tina's list queries implement the cursor-based Relay specification. Collection lists can be queried with <collection>Connection
.
Here we will query our post
collection with postConnection
.
{postConnection {edges {node {idtitle}}}}
{"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"}}]}}}
© TinaCMS 2019–2024