Skip to content

Commit

Permalink
Fixed a typo in the website tutorial (#4342)
Browse files Browse the repository at this point in the history
Summary:
Fixed typo in the website tutorial

Pull Request resolved: #4342

Reviewed By: tyao1

Differential Revision:
D46738680

Privacy Context Container: L1125407

Pulled By: captbaritone

fbshipit-source-id: 5593c38151f6b46c5606a4775dd449a36aed4173
  • Loading branch information
Jeshuran Paul authored and facebook-github-bot committed Jun 22, 2023
1 parent 4b9cde8 commit 34a3581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/tutorial/queries-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ This illustrates the part of the graph that this query is asking for:
![Parts of the GraphQL query](/img/docs/tutorial/query-breakdown.png)

Now that we’ve defined the query, we need to do two things.
1. Run relay compiler so that it knows aboout the new Graphql query. [npm run relay.]
1. Run relay compiler so that it knows about the new Graphql query. [npm run relay.]
2. Modify our React component to fetch it and to use the data returned by the server.

If you open package.json you will find the script `relay` is hooked up to run the relay-compiler. This is what npm run relay does. Once the compiler successfully updates/generated the new compiled query you will be able to find it in the __generated__ folder under src/components/ as NewsfeedQuery.graphql.ts. This project comes with precomputed fragments, so unless you do this step, you will not get the desired results.
Expand Down

0 comments on commit 34a3581

Please sign in to comment.