How to use distinct in GraphQL query?
问题 Here is query where I try to use distinct in graphQl query: query{ contacts(take: 10, distinct: true) { firstName lastName title } } But I am getting error: { "errors": [ { "message": "Unknown argument \"distinct\" on field \"contacts\" of type \"QuerySchema\".", "locations": [ { "line": 2, "column": 21 } ] } ] } 回答1: 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