Edit: Typing out the question gave me a new searc...
# orm-help
j
Edit: Typing out the question gave me a new search term which led me to answer my own question via: https://prisma.slack.com/archives/C0MQJ62NL/p1522538986000060 I'm having trouble wrapping my mind around a slightly sophisticated query with Prisma. If I implement a type
Place
as such:
Copy code
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?
Copy code
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
👍 1