Skip to content

Enhancement: Multiple @Field options #75

@pedrofnunes

Description

@pedrofnunes

Defining 2 conflicting @Field decorator options should log a warning.

i.e @Field({ type: FilterResponse, isList: true, pagination: true, description: 'something' })

If isList: true is being mistakenly used with pagination: true, it returns null values for this @Field, and a warning would ease debugging. Also, more detailed comments, mentioning this conflict in the FieldOption Interface would help avoid this mistake.

  • Warning

  • Instructional comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions