Skip to content

Commit 8e557f9

Browse files
KennethKinLumfacebook-github-bot
authored andcommitted
fix typos (#4597)
Summary: fix typos Pull Request resolved: #4597 Reviewed By: alunyov Differential Revision: D53049540 Pulled By: captbaritone fbshipit-source-id: 32b6d4afcd52279fbde17867211ee41948b15f64
1 parent 5dae763 commit 8e557f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/tutorial/queries-1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const NewsfeedQuery = graphql`
6969

7070
Let’s break this down:
7171

72-
* To embed GraphQL within Javascript, we put a string literal <span class="color1">marked with the <code>graphql``</code> tag</span>. This tag allows the Relay compiler to find and compile the GraphQL within a Javascript codebase.
72+
* To embed GraphQL within JavaScript, we put a string literal <span class="color1">marked with the <code>graphql``</code> tag</span>. This tag allows the Relay compiler to find and compile the GraphQL within a JavaScript codebase.
7373
* Our GraphQL string consists of a <span class="color2">query declaration</span> with the keyword `query` and then a query name. Note that the query name **must** begin with the module name (in this case <code>Newsfeed</code>).
7474
* Inside the query declaration are *fields*, which specify what information to query for*:*
7575
* Some fields are *<span class="color3">scalar fields</span>* that retrieve a string, number, or other unit of information.
@@ -179,7 +179,7 @@ const MyQuery = graphql`
179179
`;
180180
```
181181

182-
... the Javascript variable `MyQuery` is actually assigned to an object that looks something like this:
182+
... the JavaScript variable `MyQuery` is actually assigned to an object that looks something like this:
183183

184184
```
185185
const MyQuery = {
@@ -260,7 +260,7 @@ We’ll revisit types throughout this tutorial. But next, we'll look at an even
260260

261261
Queries are the foundation of fetching GraphQL data. We’ve seen:
262262

263-
* How to define a GraphQL query within our app using the <code>graphql``</code> tagged literal
263+
* How to define a GraphQL query within our app using the <code>graphql``</code> tagged literal.
264264
* How to use the `useLazyLoadQuery` hook to fetch the results of a query when a component renders.
265265
* How to import Relay's generated types for type safety.
266266

0 commit comments

Comments
 (0)