I am trying to execute a graphql mutation via apollo on android.
For example I have this:
mutation allData($filter: DataFIlter) {
data: listData(
filter: $filter
) {
items {
...DataFragment
}
}
}
and I need to send Json like this:
{
"filters": [
{
"atr1": "...",
"atr2": "...",
}
],
{...}
]
}
But DataFilter is scalar type that don’t described on schema.json. In my generated “AllDataMutation()” type of parametr “dataFilter” is “Any?”. What should i pass to this function?