GithubHelp home page GithubHelp logo

Comments (5)

iangregsondev avatar iangregsondev commented on April 27, 2024 1

You can do this using allowExternalErrors.

Look into the readme, it allows non interception of errors. This is then left up to another framework

from graphql-shield.

nmquaan avatar nmquaan commented on April 27, 2024 1

Hi @maticzav,
Thanks for your reply. I solved my problem 5 days ago.
I will close this issue now.

from graphql-shield.

maticzav avatar maticzav commented on April 27, 2024

Starting to build the comminity! πŸŽ‰πŸŽ‰

from graphql-shield.

nmquaan avatar nmquaan commented on April 27, 2024

Thanks for the support!
This issue solved.

I have a difference problem when submit multiple query in a request, query has difference role but when permission fail on a query so difference query still has data.
Expected data:
{ "errors": [ { "message": "UNAUTHORIZED", "name": "GDLError", "time_thrown": "2018-07-20T04:27:46.733Z", "data": { "resCode": "UNAUTHORIZED", "params": [] } } ], "data": { "getSupportRequest": null, "getTotalSupportRequest":null, } }
But autual result:
{ "errors": [ { "message": "UNAUTHORIZED", "name": "GDLError", "time_thrown": "2018-07-20T04:27:46.733Z", "data": { "resCode": "UNAUTHORIZED", "params": [] } } ], "data": { "getSupportRequest": null, "getRequestTypeLookup": [ { "id": "5b34a1ccdeca3966984d8f0a", "value": "aaaa" }, { "id": "5b34a1ccdeca3966984d8f09", "value": "aaaa" }, { "id": "5b34a1ccdeca3966984d8f08", "value": "aaaaa" }, { "id": "5b34a1ccdeca3966984d8f07", "value": "aaaaa" }, { "id": "5b34a1ccdeca3966984d8f06", "value": "aaaa" }, { "id": "5b34a1ccdeca3966984d8f05", "value": "ThiαΊΏu hΓ ng" }, { "id": "5b34a1ccdeca3966984d8f04", "value": "aaaa" }, { "id": "5b34a1ccdeca3966984d8f03", "value": "aaaa" }, { "id": "5b34a1ccdeca3966984d8f02", "value": "aaaa" } ] } }

from graphql-shield.

maticzav avatar maticzav commented on April 27, 2024

@nmquaan would you mind sharing your schema as well? I believe I can better explain the solution on your concrete problem.

from graphql-shield.

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.