Here is query where I try to use distinct in graphQl query:
query{ contacts(take: 10, distinct: true) { firstName lastName title
GraphQL has no built-in sorting/filtering. It is up to the server to implement features like that, so if you're relying on a third party API and it doesn't support it then you will have to filter the response yourself.