Skip to content

Commit

Permalink
docs(gatsby): Update query-watcher to reference TS file (#35100)
Browse files Browse the repository at this point in the history
* Update query-extraction.md

updated

* Update query-extraction.md

* Update docs/docs/query-extraction.md

Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>

* Update query-extraction.md

file updated

Co-authored-by: Lennart <lekoarts@gmail.com>
Co-authored-by: Josh Johnson <jcjohnson77@gmail.com>
  • Loading branch information
3 people committed Mar 10, 2022
1 parent 787a85f commit 726b51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/query-extraction.md
Expand Up @@ -13,7 +13,7 @@ title: Query Extraction
## Extracting queries from files

Up until now, Gatsby has [sourced all nodes](/docs/node-creation/) into Redux, [inferred a schema](/docs/schema-generation/) from them, and [created all pages](/docs/page-creation/). The next step is to extract and compile all GraphQL queries from your source files. The entrypoint to this phase is [query-watcher extractQueries()](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-watcher.js), which immediately compiles all GraphQL queries by calling into [query-compiler.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-compiler.js).
Up until now, Gatsby has [sourced all nodes](/docs/node-creation/) into Redux, [inferred a schema](/docs/schema-generation/) from them, and [created all pages](/docs/page-creation/). The next step is to extract and compile all GraphQL queries from your source files. The entrypoint to this phase is [query-watcher extractQueries()](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-watcher.ts), which immediately compiles all GraphQL queries by calling into [query-compiler.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/query/query-compiler.js).

### Query compilation

Expand Down

0 comments on commit 726b51f

Please sign in to comment.