knaadh / nestjs-drizzle

A NestJS module for integrating DrizzleORM with Postgres, MySQL, SQLite, Turso and Planetscale drivers
MIT License
132 stars 8 forks source link

Unable to inject untagged drizzle #13

Closed ben-hn closed 2 weeks ago

ben-hn commented 3 months ago

Not sure if this one is you or nest, but if you don't specify a tag in the registerAsync method, it defaults to default, however I can't seem to get it back using just '@Inject(), only with@Inject('default')`.

Maybe an @InjectDrizzle decorator would do this?

mithleshjs commented 3 months ago

Inject can't work without the token according to Nest standard. @InjectDrizzle() could be created as a alternative decorator 👍

mithleshjs commented 3 months ago

15