Giter Club home page Giter Club logo

Comments (3)

acoreyj avatar acoreyj commented on May 26, 2024

It isn't supported right now to pass in an existing schema and just alter it. I know graphql-tools does have some new features for schema stiching to merge schemas though, would that work for your use case?

The other option would be doing it after the fact using the way plugins do it, addtypedefstoschema and setIResolvers functions.

I'll look into the Unknown directive "auth". Not sure if its something that I can do or if graphql-tools doesn't support 14

from graphql-genie.

acoreyj avatar acoreyj commented on May 26, 2024

Looks like Graphql 14 was validating the directives, so I had to add some logic to temporarily add the directives until the plugin actually sets it up, so that fixes that Unknown directive issue. ([email protected])

If schema stitching is too much trouble it still may be easier to add things after the fact.

For directives you can always do have the directive in your typedefs and then use the SchemaDirectiveVisitor.visitSchemaDirectives function.

For resolvers you can use addResolveFunctionsToSchema

from graphql-genie.

yostools avatar yostools commented on May 26, 2024

@acoreyj Thank you very much for your hints and the provision of the new version [email protected]. [email protected] works now.

from graphql-genie.

Related Issues (14)

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.