Comments (2)
This got resolved by #49, especially see #49 (comment).
from graphql-go.
Hey @neelance
I am a bit confused on how to use the QueryError
. In my case, I want to return errors with a message and code, for example:
{
...
errors: [
{"key": "some_error", "msg": "some message"},
...
]
}
Is there an example for using QueryError
?
from graphql-go.
Related Issues (20)
- Make directives future-proof HOT 4
- Add executable example for string descriptions
- Move implementation detail out of AST schema
- Add complexity analysis plugin HOT 1
- Question on separate resolvers for different operations HOT 4
- Question on query string parsing HOT 1
- Rename types package
- Add enum example
- Allow directives without a Go visitor counterpart
- Allow field names starting with a leading `_`
- Allow struct fields which are functions
- Remove _service from the introspection and it should be opt-in
- Apollo Federation subgraph example
- The query resolver can't receive the context HOT 7
- `MustParseSchema` panics with nullable argument Directives HOT 6
- Subscription fails with missing method error HOT 1
- 2023/03/29 07:14:42 Error: The data source arguments are not valid HOT 3
- query parser bug HOT 1
- MongoDB _id field HOT 3
- Issue with negative numbers HOT 3
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 graphql-go.