typegql icon indicating copy to clipboard operation
typegql copied to clipboard

Falsy values are being treated as `null`

Open jdolle opened this issue 7 years ago • 0 comments

I've noticed a couple situations that return null rather than the expected value...

  • Returning 0 for Float/Int
  • The first enum (because enums start at 0 in TS)
  • An empty string

It seems to me that any falsy value is being resolved as null.

jdolle avatar Jul 26 '18 17:07 jdolle