-
Notifications
You must be signed in to change notification settings - Fork 59
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
Scalar root field (string) only returns undefined #24
Comments
This definitely looks like a bug. We should also make sure to add some more test coverage for this. |
I'm trying to debug this one. We have a separate issue for test coverage (#13) |
It seems to have something to do with the way we create the info object. |
The rootfield wasn't added to the info object if it is a scalas type. Closes #24
We actually had a test for this, but the assertion was incorrect. |
The rootfield wasn't added to the info object if it is a scalas type. Closes #24
What is the expected return value of a generated function on
query
when the root field is a scalar?Consider this example:
With the current implementation, it prints only
undefined
.I'd expect this to print either
Hello World
or{ hello : 'Hello World' }
.The text was updated successfully, but these errors were encountered: