Remove required and defaultValue attributes from Argument annotation #150
Labels
in: core
Issues related to config and core support
in: web
Issues related to web handling
type: enhancement
A general enhancement
Milestone
Currently, the
@Argument
annotation allows to specify whether the input argument is required and set a default value if none was provided.We've found that this can lead to confusing situations, since that information is supposed to be present already at the schema level.
For example, a
greeting
query that requires aname
input argument:And here's a query schema that does not require it but specifies a default value:
The existing attributes on
@Argument
add a duplicate layer and go against the "schema first" principle behind Spring GraphQL.The text was updated successfully, but these errors were encountered: