Tina 的列表查询实现了基于游标的 Relay 规范。可以使用 <collection>Connection
查询集合列表。
这里我们将使用 postConnection
查询我们的 post
集合。
{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"}}]}}}