GithubHelp home page GithubHelp logo

Field type permissions about graphql-shield HOT 5 CLOSED

dimatill avatar dimatill commented on April 27, 2024
Field type permissions

from graphql-shield.

Comments (5)

maticzav avatar maticzav commented on April 27, 2024 1

Try upgrading graphql-yoga to the latest version.

The issue about type resolvers has been resolved in one of the latest versions of graphql-middleware which should have, as well, been updated in Yoga.

Tell me if that worked out for you! 🙂

from graphql-shield.

maticzav avatar maticzav commented on April 27, 2024

@flyhigh-hifi thanks for reporting this. Could you check out error logs using { debug: true } option?

Besides that, what's your version of graphql-shield and graphql-middleware/graphql-yoga?

from graphql-shield.

flyhigh-hifi avatar flyhigh-hifi commented on April 27, 2024

Versions:
shield: 2.1.0
yoga: 1.9.2

With debug as true:

TypeError: resolver is not a function
    at /Users/mark/Desktop/test/node_modules/graphql-yoga/node_modules/graphql-middleware/src/index.ts:46:9
    at /Users/mark/Desktop/test/node_modules/graphql-shield/src/index.ts:232:16
    at Generator.next (<anonymous>)
    at fulfilled (/Users/mark/Desktop/test/node_modules/graphql-shield/dist/index.js:4:58)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:118:7)

from graphql-shield.

flyhigh-hifi avatar flyhigh-hifi commented on April 27, 2024

Bunch of thanks to you, it did!

from graphql-shield.

maticzav avatar maticzav commented on April 27, 2024

No problem, I am glad it worked 😄

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.