Skip to content

Omit an unused input types from input.ts #46

@6br

Description

@6br

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions