Skip to content
Discussion options

You must be logged in to vote

parseValue is used for variable values, which may be provided through a variety of formats. The usual transport layer for GraphQL is JSON over HTTP. JSON comes from JavaScript, so it does only have a single numeric type. Thus, we are more lenient.

parseLiteral deals with values that are provided as part of the query string. The GraphQL language itself does distinguish between Int and Float types, so we can be more strict there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hazem-Atya
Comment options

Answer selected by Hazem-Atya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants