#@Erik Sipsma I'm confused about

1 messages · Page 1 of 1 (latest)

marsh sedge
#

Ah yeah I guess it's kind of weird, I believe you need to send "null". That's because "null" is what you get if you try to marshal an empty value as json

errant fox
#

"null" as a string?

marsh sedge
#

In go at least that just happened transparently without us having to special case anything because we were calling json.Marshal(nil) and it returns "null" in that case. Not sure if Python just picked it up implicitly too

errant fox
#

Because null as a value isn't type of JSON so it cannot be send as arg in the GQL call

#

I didn't tried "null" though, I'll give it a try

marsh sedge
errant fox
#

Alright!

#

Error: make request: input:1: minimal.helloVoid Cannot return null for non-nullable field Minimal.helloVoid if I send "null"

#

I don't understand what does he expect lmao

#

And I know the introspection is correct, I have unit test for that

marsh sedge
errant fox
#

Oh I don't do that, that's maybe why