Comments (6)
Yes! See the docs here
from snowflaqe.
In your case, it would be
"errorType": {
"CustomErrorType": {
"message": "string"
"path": "string list"
"extensions": "dictionary<string, string>"
}
}
As for locations
, there isn't a generic way to describe such type (list of other complex objects) but it should be doable to add if you REALLY need it
from snowflaqe.
I believe this is resolved as well? I'll close the issue, please re-open if the problem persists
from snowflaqe.
For now I removed the custom errorType definition.
from snowflaqe.
@bdaniel7 Didn't the proposed solution work for you?
from snowflaqe.
Hmm, I see now that it does fill the error object:
{ message =
"Cannot query field "updateTimestamps" on type "Vessel". Did you mean "updateTimestamp"?"
path = null
extensions = seq [[code, GRAPHQL_VALIDATION_FAILED]] }
Ok, I will use the custom error object as you recommended, thank you.
from snowflaqe.
Related Issues (20)
- Extensions of a response HOT 1
- Handling of double-quoted Descriptions in SDL HOT 6
- Schema with unions throws NullReferenceException HOT 5
- Exception when using custom scalars inside .graphql schema HOT 5
- Use Templatus for F# code generation HOT 1
- Problems when using generated input types from Hasura backend HOT 10
- GraphQLParser.dll is missing from Snowflaqe.Tasks nugget package HOT 7
- Publish packages to GitHub Packages and NuGet automatically HOT 3
- Escape F# keywords in output HOT 6
- Add support for `.graphql` extension files HOT 1
- Find graphql files under queries path recursively HOT 3
- Config options to set headers for introspection query HOT 5
- Escape reserved keywords with backticks HOT 2
- Manage JSONB fields HOT 2
- Hoist and reuse field types HOT 2
- The description of ENUM kind is not normalized.
- Adding new F# keyword "fixed" HOT 1
- Project file still gets created when "createProjectFile": false
- Bad API behaviour results in uncaught errors HOT 5
- Meta: Maintenance plans HOT 1
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 snowflaqe.