Skip to content

Feature Request: Control description output #879

@mmmeff

Description

@mmmeff

My API project uses TypeGraphQL to generate its schema from Prisma/Resolvers.

In TypeGraphQL, the way you control which fields of each Prisma model get included in the generated GraphQL models is by using a description annotation like: /// @TypeGraphQL.omit(input: true, output: true)

When generating json-schema using this library, we see descriptions on models like so:

"id": {
  "type": "string",
  "description": "@TypeGraphQL.omit(input: true)"
}

It would be great if I could add a pattern to omit descriptions in the generated json-schema or at least disable them outright.

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