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 687d007 commit 7fb3e83
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 @@ -187,7 +187,7 @@ let Guid = Define.Scalar(

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).
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 the 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.

## Defining an Input Object
Expand Down

0 comments on commit 7fb3e83

Please sign in to comment.