Giter Site home page Giter Site logo

Comments (9)

yaacovCR avatar yaacovCR commented on June 30, 2024

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.

yaacovCR avatar yaacovCR commented on June 30, 2024

I am working on adding support for this to WrapType and ExtendSchema related transforms...

from graphql-tools-fork.

chess777 avatar chess777 commented on June 30, 2024

No, I'm not using transformation. This path comes from backend.

from graphql-tools-fork.

yaacovCR avatar yaacovCR commented on June 30, 2024

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.

yaacovCR avatar yaacovCR commented on June 30, 2024

Actually, tests show already working for WrapType.

from graphql-tools-fork.

yaacovCR avatar yaacovCR commented on June 30, 2024

Very interested in this. If you could share a detailed code sample, that would be amazing.

from graphql-tools-fork.

chess777 avatar chess777 commented on June 30, 2024

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.

yaacovCR avatar yaacovCR commented on June 30, 2024

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.

chess777 avatar chess777 commented on June 30, 2024

Thanks for help!
Your help is invaluable

from graphql-tools-fork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.