Skip to content

Implements Partial<Entity> on DTOs #40

@fhenriques-meli

Description

@fhenriques-meli

We can also leverage TypeScript type checking system and ensure that we won't accidentally change the type of property by implementing Partial type:

@inputType()
class AddRecipeDto implements Partial {}

https://typegraphql.com/docs/0.17.0/resolvers.html#arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions