Comments (3)
It seems like these tags are incompatible. as
FormatErrorFn
in thehandler
package seems to just getnil
for theerror
from thegraphql/gqlerrors
package.
Oh, this looks like it is nil
because now instead of the context of gqlerrors.FormattedError
in the argument, that argument is stripped to the result of OriginalError()
call to the FormattedError
. Which in the case of my testing originalError
on FormattedError
was not being set.
from handler.
Hi @tapocol! thanks for the friendly reminder
from handler.
It looks like there is a mixup. https://github.com/graphql-go/graphql/commits/v0.7.7 does not include a commit for "consolidates original error to allow custom format error". Yet, handler tag https://github.com/graphql-go/handler/commits/v0.2.3 does include a commit for "handler: consolidate FormatErrorFn"
It seems like these tags are incompatible. as FormatErrorFn
in the handler
package seems to just get nil
for the error
from the graphql/gqlerrors
package.
from handler.
Related Issues (20)
- Will you tag a new version?
- How to set response header?
- Is the project mantained? HOT 2
- Schema introspection failure with Apollo Fetch API
- Please release the repo HOT 1
- Logging Panic Stack Trace HOT 2
- formattedError.OriginalError undefined
- Field showing deprecated directive HOT 1
- How can i get ip address client from handler HOT 1
- subscriptions with graphiql
- How do I pass a header? HOT 1
- type to Output
- resultsCallbackFn position in ContextHandler
- Errors when trying to use Playground or GraphiQL set to true HOT 3
- Error when starting this, unknown type __Type, __InputValue HOT 1
- Why is it allowed to send mutations using GET method?
- How to differentiate the GraphiQL route from the GraphQL URL itself?
- cdn resource can not get, always stop on loading
- Go ParseThru vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handler.