Comments (9)
Seems like you are stitching to remote schema with a different schema using transforms?
I think your transform needs to modify the error path so it can be properly recreated. Would you mind sharing the delegation and transform code?
Error proxying works by attempting to reconstruct a response even when null so multiple errors can be passed by gateway, all with correct paths.
from graphql-tools-fork.
I am working on adding support for this to WrapType and ExtendSchema related transforms...
from graphql-tools-fork.
No, I'm not using transformation. This path comes from backend.
from graphql-tools-fork.
Maybe you should be using a transform? I am not quite certain without seeing more code. Is there a reason that path does not match your schema?
from graphql-tools-fork.
Actually, tests show already working for WrapType.
from graphql-tools-fork.
Very interested in this. If you could share a detailed code sample, that would be amazing.
from graphql-tools-fork.
Ok, I understand. It seems I can't just add arbitrary path that does not correspond to schema for errors when stitching as this breaks error matching to properties.
from graphql-tools-fork.
Correct, I believe this is as per spec: https://graphql.github.io/graphql-spec/draft/#sec-Errors
You should be able to add whatever you want to error under extensions key.
from graphql-tools-fork.
Thanks for help!
Your help is invaluable
from graphql-tools-fork.
Related Issues (20)
- TransformRootFields + RenameObjectFields not working together HOT 9
- Multiple errors not merged correctly HOT 7
- Errors are getting lost for array elements HOT 10
- Error when handling resolver error HOT 7
- Test with graphql-js v15.0.0-rc.1 HOT 3
- Did not fetch typename for object, unable to resolve interface HOT 32
- Overriding remote custom scalars/enums not working when renaming types HOT 1
- delegateToSchema return type HOT 2
- Prevent sync operations from becoming async
- Transforms can lead to "empty" types breaking schema HOT 14
- applySchemaTransforms not called in delegateToSchema HOT 6
- Test with graphql-js v15.0.0-rc.2 HOT 11
- Requiring apollo-link-http-common enforces dom to the tsconfig libs HOT 8
- Question: ApolloLink for remote schemas with cache? HOT 8
- RenameTypes + RenameObjectFields with interface resolveType not transforming correctly HOT 4
- Question: Schema Transform partial application of arguments HOT 10
- Improve typedoc documentation coverage.
- Schema delegation doesn't work with query variables in nested fields HOT 2
- Unable to mutate enum value through visitEnumValue HOT 2
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-tools-fork.