jangerhofer
05/11/2018, 3:18 PMPlace
as such:
type Place {
id: ID! @unique
city : String!
...
}
and subsequently wish to retrieve a list of unique cities, is there a way to do this without writing a one-off query like the following?
Query : {
cities : [String]
}
i.e. Is there a built-in method for querying distinct values? The closest functionality I could find is the as-of-yet un-implemented group by
query in this ticket. https://github.com/graphcool/prisma/issues/1312