Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans to generate schemas for *Input types ? #23

Open
misha-erm opened this issue Mar 3, 2021 · 0 comments
Open

Plans to generate schemas for *Input types ? #23

misha-erm opened this issue Mar 3, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@misha-erm
Copy link

Hello,

Just wanted to know whether it's planned to support generation of input schemas too.

Prisma generates a lot of types like 'ModelCreateInput, ModelUpdateInput....' so they can be quite useful for validating requests. The problem with current solution is that properties aren't marked as required so schemas can't be used for validating user input.

Thanks

@valentinpalkovic valentinpalkovic added the enhancement New feature or request label Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants