#@Erik Sipsma I'm confused about
1 messages · Page 1 of 1 (latest)
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
"null" as a string?
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
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
Yeah the argument to returnValue has to be a json string, so in that case it would be the typescript string with value "null"
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
In the Go SDK we always set void return values to be optional, so there it looks like dag.TypeDef().WithKind(Voidkind).WithOptional(true)
Oh I don't do that, that's maybe why