Closed benzolium closed 4 months ago
Hey @benzolium, relevant code is in resolveField
and generally resolve*
functions in executable_schema.go
. Let me know if you need some further guidance on the implementation.
Thanks @andyyu2004! I might be confused with "defaultValue"
case in resolveInputValue
so I've overlooked it.
PR with a fix is ready.
When I (or frontend lib) query merged schema:
I'm getting null as default values, tho I actually have some:
I've reproduced it in a test: https://github.com/movio/bramble/commit/a7c3cbeaf10c3a166a9dad720704ee8ade63d433. I want to fix it, but I don't know, where to start. @pkqk, maybe you could guide me? I've already checked gqlparser - it looks fine. I have also written a test in
merge_test.go
and it's passing, but I have doubts becauseCheckSuccess
helper is a bit complicated.