Skip to content

Make decorators less verbose #12

@playerx

Description

@playerx

Hi guys, at first I want to say Great Work! You have big improvements after graphql-decorator and I've some ideas how to make this library more flexible:

Main idea is to have as few decorators as possible:

before:
    @NonNull()
    @Pagination()
    @Field({type: UserType})
after:
    @Field({type: UserType, notNull: true, pagination: true})

before:
    @ObjectType()
    @Description('An user')
after:
    @ObjectType({description: 'An user'})

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions