@Field() decorator for explicit type declaration
Supports both legacy decorators (experimentalDecorators) and Stage 3 TC39 decorators.
Usage: @Field() - Simple type (inferred from design:type in legacy mode) @Field(type => String) - Explicit type @Field(type => [String]) - Array type @Field({ nullable: true }) - With options @Field(type => String, { nullable: true }) - Type with options
@Field() decorator for explicit type declaration
Supports both legacy decorators (experimentalDecorators) and Stage 3 TC39 decorators.
Usage: @Field() - Simple type (inferred from design:type in legacy mode) @Field(type => String) - Explicit type @Field(type => [String]) - Array type @Field({ nullable: true }) - With options @Field(type => String, { nullable: true }) - Type with options
@Field() decorator for explicit type declaration
Supports both legacy decorators (experimentalDecorators) and Stage 3 TC39 decorators.
Usage: @Field() - Simple type (inferred from design:type in legacy mode) @Field(type => String) - Explicit type @Field(type => [String]) - Array type @Field({ nullable: true }) - With options @Field(type => String, { nullable: true }) - Type with options
@Field() decorator for explicit type declaration
Supports both legacy decorators (experimentalDecorators) and Stage 3 TC39 decorators.
Usage: @Field() - Simple type (inferred from design:type in legacy mode) @Field(type => String) - Explicit type @Field(type => [String]) - Array type @Field({ nullable: true }) - With options @Field(type => String, { nullable: true }) - Type with options