I am trying to make a request that takes a variable for the distinct_on parameter, but what I have doesn't seem to work:
query customers($distinct: String!) {
customers(limit: 20, distinct_on: $distinct) {
startDate
endDate
}
}
I am assuming the String
type is not what is expected, what type should I be using for $distinct
?