MichalLytek / MichalLytek/typegraphql-prisma
Allow connect but not create/connectOrCreate in generated input type
Open
community
enhancement
priority:low
- Dominant language
- TypeScript
- Stars
- 918
- Forks
- 130
- PR merge metrics
- No merged PRs in 30d
Description
Let's say I have two models - employee and company. Company has many employees.
I'd like to restrict the emitted types for the EmployeeCreateOneInput to only allow `connect`ing a company, not `create`ing one. I wouldn't be surprised if this feature already exists or has already been requested. I tried to search for it and couldn't find anything.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.