Skip to content

Custom directive default parameter not loaded #443

Open
@pelletier197

Description

@pelletier197

I created this custom directive inside a spring boot project

directive @Email(message : String = "{path} must be a valid email") on ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION

and when I use it inside a query, this way:

 {
    updatePersonEmail(email: String @Email) {
    }
 }

then the default argument values of Email are not passed inside the directive. It's almost like directive declared and the one on the argument are not mapped together. Is this a wished behaviour, or is there something more to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions