Hi All,
I have a lambda function that has "data" as argument of type "a.json()"
xyzFunction: a
.mutation()
.arguments({
data: a.json(),
})
When I make a call to this function from UI
client.mutations.xyzFunction({
data: {
companyName: "TEST",
productName: "TEST"
},
})
I get the following error
"Variable 'data' has an invalid value."
The lambda function call is failing before even reaching handler code.
Could anyone tell how to pass input to argument that is using a.json() type ?
Thanks