Skip to content

Commit 1d44a02

Browse files
Adding link to "schema page"
It was quite akward that the name of a page was not a link to the page
1 parent c9417e4 commit 1d44a02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/learn/Learn-Queries.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ Now, in our client code, we can simply pass a different variable rather than nee
212212

213213
The variable definitions are the part that looks like `($episode: Episode)` in the query above. It works just like the argument definitions for a function in a typed language. It lists all of the variables, prefixed by `$`, followed by their type, in this case `Episode`.
214214

215-
All declared variables must be either scalars, enums, or input object types. So if you want to pass a complex object into a field, you need to know what input type that matches on the server. Learn more about input object types on the Schema page.
215+
All declared variables must be either scalars, enums, or input object types. So if you want to pass a complex object into a field, you need to know what input type that matches on the server. Learn more about input object types on the [Schema page](/learn/schema).
216216

217217
Variable definitions can be optional or required. In the case above, since there isn't an `!` next to the `Episode` type, it's optional. But if the field you are passing the variable into requires a non-null argument, then the variable has to be required as well.
218218

219-
To learn more about the syntax for these variable definitions, it's useful to learn the GraphQL schema language. The schema language is explained in detail on the Schema page.
219+
To learn more about the syntax for these variable definitions, it's useful to learn the GraphQL schema language. The schema language is explained in detail on the [Schema page](/learn/schema).
220220

221221

222222
### Default variables
@@ -284,7 +284,7 @@ mutation CreateReviewForEpisode($ep: Episode!, $review: ReviewInput!) {
284284

285285
Note how `createReview` field returns the `stars` and `commentary` fields of the newly created review. This is especially useful when mutating existing data, for example, when incrementing a field, since we can mutate and query the new value of the field with one request.
286286

287-
You might also notice that, in this example, the `review` variable we passed in is not a scalar. It's an _input object type_, a special kind of object type that can be passed in as an argument. Learn more about input types on the Schema page.
287+
You might also notice that, in this example, the `review` variable we passed in is not a scalar. It's an _input object type_, a special kind of object type that can be passed in as an argument. Learn more about input types on the [Schema page](/learn/schema).
288288

289289
### Multiple fields in mutations
290290

0 commit comments

Comments
 (0)