Feature request: Is it possible to omit unused input types from inputs.ts ,e.g., by using model description?
Example:
/// @Pothos.omit(create, update)
model User {
id String @id @default(uuid())
email String
password String
}
Background: I'd like to disable create/update for some models.
When I exclude a model from generateAllMutations like generateAllMutations({ exclude: ["User"] }) , unused input types (e.g. UserCreateInput) remain on inputs.ts, which are displayed on GraphQL schema.
Great idea, thanks for the suggestion
I'll work on this at some point when I'm freer
Contributions are welcome, the code for this project is very lean e.e
Feature request: Is it possible to omit unused input types from
inputs.ts
,e.g., by using model description?Example:
Background: I'd like to disable create/update for some models. When I exclude a model from generateAllMutations like
generateAllMutations({ exclude: ["User"] })
, unused input types (e.g.UserCreateInput
) remain oninputs.ts
, which are displayed on GraphQL schema.