Comments (3)
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.
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.
@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)
- Returning from Array#forEach HOT 2
- CRUD permission on fields? HOT 2
- Graphql yoga PostgreSQL example not starting up HOT 2
- An error occurs when using scalars HOT 3
- Expandable Fortune.js store HOT 2
- Is amazing graphql-genie production ready? HOT 1
- [ Support Question ] The value for inverse... is invalid HOT 14
- Unexpected Non-Nullable List Behavior HOT 3
- Default export not working for plugins HOT 7
- Upsert fails silently
- Memory example not working with latest graphql-tools
- [Question] Order of schema? HOT 1
- [Question/Bug] Allowing for Schema Evolution 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-genie.