Skip to content

Add more field decorator options inside the prisma schema #21

Closed
@JohannesKlauss

Description

@JohannesKlauss

It would be awesome to have a bit more control over how the CRUD resolvers are generated. For example there could be more options to the field decorator to include authorization like so:

model User {
  id     Int     @default(autoincrement()) @id
  /// @TypeGraphQL.field(name: "emailAddress")
  email  String  @unique
  /// @TypeGraphQL.field(authorized: ["User", "Admin"])
  posts  Post[]
}

Is this something you consider as a feature? I think this would greatly increase development speed.

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