graphql-go / graphql-go/graphql

IntValue and FloatValue Value field is a string

Open
#356 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

Hi,
When we specify scalars in our application that have FloatValues or IntValues they're being converted to strings in the resulting JSON. Why are FloatValue and IntValue given string Values?
Is there a way to get the desired behaviour? i.e. if I put in an argument of [1.2, 3.5] I should get that in the framework, not ["1.2", "3.5"].
Sorry for brevity, in a rush!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.