Closed feline87 closed 1 year ago
@feline87 As bizarre as it may be, this warning can be temporarily fixed by using named arguments 😄
@DgsMutation
fun editProduct(@InputArgument(name = "product") input: ProductInput): ProductResult {}
// 👆
That is the expected behavior, i.e. when the name of the argument does not match the field name in the schema, we need to specify it explicitly in the annotation's name argument.
DGS plugin shows a warning that says: "@InputArgument name input does not match the schema, valid argument names: [product]."
I know it doesn't match the schema. That's why I'm specifying it inside the annotation.