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. π6 Replies
update: I update
drizzle-orm
to version 0.30.0
and this workscc @S. Reka
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.Yeah itβs typo mistake
0.30.10 actually
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.thank you, i'm giving it a try