Here is query where I try to use distinct in graphQl query:
query{ contacts(take: 10, distinct: true) { firstName lastName title
Here is a example of distinct query.
query { contacts { distinct(field: title) } }
Result will be.
{ "data": { "contacts": { "distinct": [ "This is my test post", "This is my test post1", "This is my test post2" ] } } }
This query binds all titles and deduplicates.