Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Use meta fields in filter #220

Closed
joarwilk opened this issue May 29, 2017 · 2 comments
Closed

Use meta fields in filter #220

joarwilk opened this issue May 29, 2017 · 2 comments

Comments

@joarwilk
Copy link

Right now the _xMeta field is not included in the filter input type. I think it would be super useful in certain situations. For example, lets say I want to get all users that have created at least one post:

query {
  allUsers(filter: {
    _postsMeta: {
      count_gt: 0
    }
  })
}
@joarwilk
Copy link
Author

If there is any way to do this right now that doesnt include client side filtering please let me know 🙂

@marktani
Copy link
Contributor

Closed in favor of #110. In the comment chain there's also a working syntax for your specific example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants