Skip to content

Commit 9043d2e

Browse files
Sashko Stubailoleebyron
authored andcommitted
Add nitpick about arrays
1 parent d859382 commit 9043d2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/docs/Learn-Queries.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ permalink: /learn/queries/
66
next: /docs/queries/
77
---
88

9-
### Outline
9+
### ToC
10+
11+
XXX we should probably generate one
1012

1113
* A simple query
1214
* Nesting
@@ -61,7 +63,7 @@ In the previous example, we just asked for a simple string, but fields can also
6163
`} />);
6264
</script>
6365

64-
Filtering fields and traversing related objects is pretty nice, but we are just getting started.
66+
Note that in this example, the `friends` field returns an array of items. In GraphQL, queries don't specify whether the return value should be a single item or an array. You need to know which one to expect ahead of time, but it will always be consistent with what is indicated in the schema.
6567

6668
### Arguments
6769

0 commit comments

Comments
 (0)