Hi! I'd like to know if there was any progress on ...
# prisma-whats-new
s
Hi! I'd like to know if there was any progress on https://github.com/graphcool/feature-requests/issues/65 ? In my app I need to query
Author
with a specific
slug.key
(where
slug
is of type
Slug
has field
key
). I know this is already in beta, but wasn't really usable last time I tried (@sorenbs had manually enabled unicity on one of my other relations). Thanks a lot 🙂
n
@sdubois you can already query the author like this:
Copy code
allAuthors(filter: {
  slug: {
    key: "some-key"
  }
}) {
  id
}
s
yes thanks @nilan that workaround works, but it gives an array and isn't such a clean API