Magek Framework
    Preparing search index...

    Function Field

    • @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

      Returns UniversalFieldDecorator

    • @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

      Parameters

      Returns UniversalFieldDecorator

    • @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

      Parameters

      Returns UniversalFieldDecorator

    • @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

      Parameters

      Returns UniversalFieldDecorator