Type generator exists in middleware but is missing in Schema.
See original GitHub issueHi,
since the graphql-middleware update to 6.1.2 I get the following error:
MiddlewareError: Type generator exists in middleware but is missing in Schema.
I do use graphql-shield v 7.5.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:22 (3 by maintainers)
Top Results From Across the Web
graphql-shield - Bountysource
Aliasing not working with graphql-shield permissions middleware and ... MiddlewareError: Type generator exists in middleware but is missing in Schema. $ 0.
Read more >graphql-shield as 'makeProcessSchemaPlugin' in Postgraphile
The type of middleware postgraphile expects is a little different from graphql-middleware. Instead of downloading graphql-middleware and ...
Read more >Shield - GraphQL Code Generator
Shield generates GraphQL Middleware layer from your rules. ... You can apply your rule across entire schema, Type scoped, or field specific.
Read more >type-graphql/Lobby - Gitter
But when I run the same query in the playground I get an empty array ... using graphql-code-generator, it fails with 404 error,...
Read more >Subscriptions in Apollo Server - Apollo GraphQL Docs
Your schema's Subscription type defines top-level fields that clients can ... you must first swap to using the expressMiddleware function (or any other ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
isMiddlewareGenerator
is incorrectly returning false for graphql-shield permissions, which causes this error to occur in the validation.If you replace
applyMiddleware(schema, permissions)
withapplyMiddleware(schema, permissions.generate(schema))
then it will work correctly with the latest version of graphql-middleware, without needing to downgrade.I’ve been trying different versions of graphql-middleware and am seeing the same as @todda00: the problem starts with 6.1.0.