Skip to content

The inputType "String!" of a field in an annotated input type is being ignored when update is set to true. #371

Closed
@hjerichen

Description

@hjerichen

When an input type ist specified with update: true, it makes all fields optional (as stated in the documentation).
It even does it when I specifically say it should be non optional through the inputType in a Field Annotation.

#[Input(update: true)]
class UserInput
{
    #[Field(inputType: 'String!')]
    public string $important;
}

The output will be String and not String!.

Is this intended behavior?
I would expect that my specified input type is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions