-
Notifications
You must be signed in to change notification settings - Fork 2k
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
tracing and cacheControl doesn't work with custom field resolver #865
Comments
We should allow custom field resolvers here to fix it: |
PR in graphql-extensions: |
@stubailo Any idea on this? I can handle the PR when I know how to change APIs to pass |
This will be fixed in apollo-server 2.0; it will be fixed on the version-2 branch as soon as #1128 merges (which upgrades graphql-extensions to beta 10, which has a version of @chentsulin's patch, which was actually required to make the tests pass!) |
Hi, I found that setting
tracing
andcacheControl
to true breaks apps which support customfieldResolver
. For example, I add those lines of code to support resolving fields withBookshelf
ORM model:After enabling
tracing
andcacheControl
, I getError: Cannot return null for non-nullable field
error. And if I doJSON.stringify
manually to my Bookshelf model before passing it as resolver's result, it works.The text was updated successfully, but these errors were encountered: