Diana.jl icon indicating copy to clipboard operation
Diana.jl copied to clipboard

root value for user types

Open pvlkhm opened this issue 3 years ago • 1 comments

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

pvlkhm avatar Nov 20 '21 17:11 pvlkhm

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 :)

neomatrixcode avatar Nov 20 '21 21:11 neomatrixcode