Loving Tina? us on GitHub0.0k

文档

学习

v.Latest
Documentation
查询文档列表
目录

Tina 的列表查询实现了基于游标的 Relay 规范。可以使用 <collection>Connection 查询集合列表。

示例

这里我们将使用 postConnection 查询我们的 post 集合。

{
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"
}
}
]
}
}
}
上次编辑: August 15, 2024