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:
Error: ExtendedUsersItem.id args must be an object with argument names as keys.
Error: ExtendedUsersItem.id args must be an object with argument names as keys.
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!
No description
No description
No description
2 Replies
Jackson Kasi
Jackson KasiOP5mo ago
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.
Jackson Kasi
Jackson KasiOP5mo ago
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...
Want results from more Discord servers?
Add your server