I'm trying to feed an array of objects from a React app to GraphQL. But I'm getting this error:
Error: The type of Mutation.reorderFields(fieldsOrder:) must be Input Type but got: [orderField].
This is my schema:
reorderFields(
fieldsOrder:[orderField]
):Boolean!
Mutation:
type orderField{
order: Int,
myform: String,
id: String,
}
Any help would be appreciated, thank you.