Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandiwise committed Oct 30, 2024
1 parent 6c4c35f commit b1215ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/learn/execution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ This is an example of _scalar coercion_. The type system knows what to expect an
We've already seen some of what happens when a field returns a list of things with the `appearsIn` field above. It returned a [List type](/learn/schema/#lists) containing Enum type values, and since that's what the type system expected, each item in the list was coerced to the appropriate value. What happens when the `starships` field is resolved?

```js
functio Human_starships (obj, args, context, info) {
function Human_starships (obj, args, context, info) {
return obj.starshipIDs.map(
id => context.db.loadStarshipByID(id).then(
shipData => new Starship(shipData)
Expand Down

0 comments on commit b1215ce

Please sign in to comment.