drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Give options to generate schema type as class

Open
#3,891 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Feature hasn't been suggested before.

- [X] I have verified this feature I'm about to request hasn't been suggested before.

### Describe the enhancement you want to request

I'm working on a project with drizzle-orm along with NestJS and also I'm using swagger as our API documentation.

In NestJS usually the swagger things are handled using their decorators. (for ex: `@ApiOkResponse({ type: `. But it cannot be used as a response dto since it is not of a type class.

Currently to achieve it, I need to manually add the class.

So I request you to come up with a feature to generate classes as well for the schemas.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.