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: website/docs/tutorial/queries-1.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ const NewsfeedQuery = graphql`
69
69
70
70
Let’s break this down:
71
71
72
-
* To embed GraphQL within Javascript, we put a string literal <spanclass="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 <spanclass="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.
73
73
* Our GraphQL string consists of a <spanclass="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>).
74
74
* Inside the query declaration are *fields*, which specify what information to query for*:*
75
75
* Some fields are *<spanclass="color3">scalar fields</span>* that retrieve a string, number, or other unit of information.
@@ -179,7 +179,7 @@ const MyQuery = graphql`
179
179
`;
180
180
```
181
181
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:
183
183
184
184
```
185
185
const MyQuery = {
@@ -260,7 +260,7 @@ We’ll revisit types throughout this tutorial. But next, we'll look at an even
260
260
261
261
Queries are the foundation of fetching GraphQL data. We’ve seen:
262
262
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.
264
264
* How to use the `useLazyLoadQuery` hook to fetch the results of a query when a component renders.
265
265
* How to import Relay's generated types for type safety.
0 commit comments