Skip to content

源码分析

Published: at 16:00

GraphQL 指南 · 第 2 篇,共 13 篇

源码分析

源码

  1. 验证 Schema 的有效性
  2. 解析 Source(Operation)
  3. 执行

执行 execute

Query

executeFields(exeContext, rootType, rootValue, path, rootFields);

Mutation

executeFieldsSerially(exeContext, rootType, rootValue, path, rootFields);

Schema