Skip to content

Commit eff923c

Browse files
authored
格式修改
1 parent dd56fe8 commit eff923c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

site/learn/Learn-Execution.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,16 @@ GraphQL 将并发执行这些 Promise,当执行结束返回一个对象列表
149149
当每个字段被解析时,结果被放置到键值映射中,字段名称(或别名)作为键值映射的键,解析器的值作为键值映射的值,这个过程从查询字段的底部叶子节点开始返回,直到根 Query 类型的起始节点。总而言之,最后合并成为能够镜像到原始查询结构的结果,然后可以将其发送(通常为 JSON 格式)到请求的客户端。
150150

151151
让我们最后一眼看看原来的查询,看看这些解析函数如何产生一个结果:
152+
153+
```graphql
154+
# { "graphiql": true }
155+
{
156+
human(id: 1002) {
157+
name
158+
appearsIn
159+
starships {
160+
name
161+
}
162+
}
163+
}
164+
```

0 commit comments

Comments
 (0)