Skip to content

Commit

Permalink
#1 thanks @Baifann
Browse files Browse the repository at this point in the history
  • Loading branch information
willin committed Feb 24, 2018
1 parent c4a801d commit 803b92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/learn/Learn-Queries.md
Expand Up @@ -28,7 +28,7 @@ sublinks: Fields 字段,Arguments 参数,Aliases 别名,Fragments 碎片,Variabl

> 对了,还有一件事: 上面的查询是*互动的*. 意味着你可以随意修改它并看到更新的结果. 尝试在 `hero` 对象中加入 `appearsIn` 字段的查询,并查看更新的结果.
在上面的例子里, 我们只是要求返回字符串格式的英雄名字, 字段也可以直接饮用对象. 在这样的情况下, 你可以用 *子选择* 来约束该对象的字段. GraphQL 查询可以遍历相关对象及其字段, 让客户端在单一请求里获取更多的相关数据, 从而替代传统 REST 架构那样经过多次的服务器往返.
在上面的例子里, 我们只是要求返回字符串格式的英雄名字, 字段也可以直接引用对象. 在这样的情况下, 你可以用 *子选择* 来约束该对象的字段. GraphQL 查询可以遍历相关对象及其字段, 让客户端在单一请求里获取更多的相关数据, 从而替代传统 REST 架构那样经过多次的服务器往返.

```graphql
# { "graphiql": true }
Expand Down

0 comments on commit 803b92c

Please sign in to comment.