Skip to content

Commit

Permalink
Update docs/type-system.md
Browse files Browse the repository at this point in the history
Co-authored-by: panthus <[email protected]>
  • Loading branch information
xperiandri and panthus authored Feb 14, 2024
1 parent 6f7c04a commit 687d007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/type-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ let Guid = Define.Scalar(
)
```

This examples shows how to create a scalar definition for .NET `Guid` type. It requires two functions to be defined:
This example shows how to create a scalar definition for the .NET `Guid` type. It requires two functions to be defined:

1. `coerceInput` function, which will be used to resolve your scalar value from a variable or directly from a value encoded in a GraphQL query string (in this case StringValue is just a part of parsed query AST).
2. `coerceValue` function, which will return `Some` only if the value falls under the scalar's allowed values range, otherwise `None`. Applied while producing the return object graph from the resolver's output.
Expand Down

0 comments on commit 687d007

Please sign in to comment.