Skip to content

Commit 2e2f417

Browse files
chore(docs): Update query-extraction link to relay (#35045)
1 parent 011897f commit 2e2f417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/query-extraction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Up until now, Gatsby has [sourced all nodes](/docs/node-creation/) into Redux, [
1717

1818
### Query compilation
1919

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:
2121

2222
1. It informs us of any malformed queries, which are promptly reported back to the user.
2323
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

Comments
 (0)