drizzle-graphql `buildSchema` function doesn't return graphQL schema for PostgreSQL

Context: I'm trying to use drizzle-graphql buildSchema function to setup my GraphQL server using NestJS. But it keep returning null | undefined so I can't retrieve schema object from the result using destructuring. My implementation I created a NestJS module to return drizzle(postgresClient) in DatabaseModule and then inject the drizzle instance to GraphQLModule using useFactory Please let me know if there's any mistake in my usage. For the detail usage and log screen, please kindly refer to image attachments. Please tell me if I miss any information. πŸ™
No description
No description
6 Replies
Tungdayhehe
TungdayheheOPβ€’7mo ago
update: I update drizzle-orm to version 0.30.0 and this works
Andrii Sherman
Andrii Shermanβ€’7mo ago
cc @S. Reka
Sword Molester
Sword Molesterβ€’7mo ago
You mean "updated to version 0.30.10"? And which version were you using prior to that? If it was below 0.30.9, then it's expected behaviour, because I can get proper schema from drizzle instance only with versions 0.30.9 and above.
Tungdayhehe
TungdayheheOPβ€’7mo ago
Yeah it’s typo mistake 0.30.10 actually
Sword Molester
Sword Molesterβ€’7mo ago
Yeah, I've just released v0.4.0 of drizzle-graphql, it will now give you a proper error if you're using it with orm of incompatible version, should be easier to debug now.
Tungdayhehe
TungdayheheOPβ€’7mo ago
thank you, i'm giving it a try
Want results from more Discord servers?
Add your server