graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Literal values printing to console

Open ronanyeah opened this issue 4 years ago • 2 comments

When I use a hardcoded float in my mutation I see multiple lines being printed to the console during cargo watch:

object: {
  quantity: 1.2
}

Screenshot from 2021-06-07 12-10-21

ronanyeah avatar Jun 07 '21 16:06 ronanyeah

I haven't been able rogue printing code in graphql_client. I suspect it is probably in your own code or another dependency. Is it still happening? Do you have a more precise reproduction?

tomhoule avatar Jun 25 '21 08:06 tomhoule

Running cargo watch here is printing it for me: https://github.com/ronanyeah/gql_print

If you change the 0.0 in mutation.graphql to 0 it will not print so looks like it is just floats causing it.

ronanyeah avatar Jun 25 '21 21:06 ronanyeah