You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/query-extraction.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Up until now, Gatsby has [sourced all nodes](/docs/node-creation/) into Redux, [
17
17
18
18
### Query compilation
19
19
20
-
The first thing it does is use [babylon-traverse](https://babeljs.io/docs/en/next/babel-traverse.html) to load all JavaScript files in the site that have GraphQL queries in them. This produces AST results that are passed to the [relay-compiler](https://facebook.github.io/relay/docs/en/compiler-architecture.html). This accomplishes a couple of things:
20
+
The first thing it does is use [babylon-traverse](https://babeljs.io/docs/en/next/babel-traverse.html) to load all JavaScript files in the site that have GraphQL queries in them. This produces AST results that are passed to the [relay-compiler](https://relay.dev/docs/principles-and-architecture/compiler-architecture/#internaldocs-banner). This accomplishes a couple of things:
21
21
22
22
1. It informs us of any malformed queries, which are promptly reported back to the user.
23
23
2. It builds a tree of queries and fragments they depend on. And outputs a single optimized query string with the fragments.
0 commit comments