Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

root value for user types #23

Open
pvlkhm opened this issue Nov 20, 2021 · 1 comment
Open

root value for user types #23

pvlkhm opened this issue Nov 20, 2021 · 1 comment

Comments

@pvlkhm
Copy link

pvlkhm commented Nov 20, 2021

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?

root= resolvers[type_padre][nombre_nodo](nothing,args,ctx,Dict("fieldName"=>nombre_nodo,"parentType"=>type_padre,"path"=>path,"returnType"=> tipoactual))

@pvlkhm pvlkhm added the bug label Nov 20, 2021
@neomatrixcode
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants