Issue with drizzle-graphql Entities Not Working Well with GraphQL
Hello Drizzle Team,
I'm facing challenges integrating
drizzleEntities
with my GraphQL schema, particularly when extending or manipulating types. Using getFields()
to spread fields from drizzleEntities.types.UsersItem
results in errors like:
What I’ve Tried
- Manual Field Merging: Cumbersome and error-prone.
- Custom Resolvers: Works but requires avoiding getFields()
entirely.
Request for Assistance
- Is there a better way to extend or manipulate drizzleEntities
types with GraphQL?
- Any known limitations or workarounds for using getFields()
with drizzle-graphql
?
Any guidance would be greatly appreciated!
Thanks!2 Replies
Please check this to reproduce the issue: https://github.com/jacksonkasi1/drizzle-graphql-lambda
GitHub
GitHub - jacksonkasi1/drizzle-graphql-lambda
Contribute to jacksonkasi1/drizzle-graphql-lambda development by creating an account on GitHub.
GitHub
Issue: Error When Extending GraphQL Types with drizzleEntities(enti...
Description: When attempting to extend a GraphQLObjectType using fields from drizzleEntities.types.UsersItem.getFields() in drizzle-graphql, the following error occurs: Unhandled exception in handl...