Remove attributes from Argument annotation

Prior to this commit, the `@Argument` annotation would support two
attributes: `required` and `defaultValue`, specifying whether arguments
should be considered as required and default values to use if they're
not present.

This can be problematic as this can already be specified at the schema
level.

To avoid duplication and invalid setups betweens schema and Controllers,
this commit removes those attributes in favor of the schema definition.

Closes gh-150
This commit is contained in:
Brian Clozel
2021-09-24 13:47:56 +02:00
parent e0952a2791
commit b03097ad47
5 changed files with 9 additions and 63 deletions

View File

@@ -1,5 +1,3 @@
management.endpoints.web.exposure.include=health,metrics,info
spring.graphql.schema.printer.enabled=true
spring.graph