Is there a way to filter objects by number of elem...
# prisma-whats-new
m
Is there a way to filter objects by number of elements in a list? (For example: query only Posts which have no Comments)
I have managed to achieve it this way:
Copy code
query LatestRequests ($now: DateTime) {
    allRequests(orderBy: createdAt_DESC, filter: {
			documents_none: {
        createdAt_lt: $now
      }
    }) {
			id
      description
      createdAt
      _documentsMeta {
        count
      }
    }
  }
Is there any better solution?
i
You can use `OR`/`AND` to combine filters
^ If you still need some help after reading those docs, just let me know. (Tagging sends me a notification, otherwise, I may miss it)