Skip to content

Commit

Permalink
Update docs/type-system.md
Browse files Browse the repository at this point in the history
Co-authored-by: Valber M. Silva de Souza <[email protected]>
  • Loading branch information
xperiandri and valbers committed Feb 14, 2024
1 parent c17d18d commit 6f7c04a
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 examples shows how to create a scalar definition for .NET `Guid` type. It requires two functions to be defined:

1. `coerceInput` function, which will be used to resolve your scalar value from variable or directly from value encoded in 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 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 6f7c04a

Please sign in to comment.