Diana.jl
Diana.jl copied to clipboard
root value for user types
Describe the bug root value to resolver of filed with user type always get nothing
To Reproduce create scheme with any field with user-created type like Book { author: Person }
Expected behavior root should be the parent Dict (as for GraphQL basic types resolvers)
Additional context Here the line, where this nothing is passed: can we use defined root variable instead of nothing? https://github.com/neomatrixcode/Diana.jl/blob/cd82aba315efe34b63dbc877e39575d7c61291c0/src/execute.jl#L128
hello @paulkhomich,
Thank you very much for your contribution, at the moment 'nothing' is the only thing that can be used to resolver the root node, in the next version that feature will be added, along with some more improvements :)