We are using couchbase in our project.
I need to write a query for a use case where:
- I get the earliest expiring “case” (Field name: expiryTimestamp)
- If multiple docs are there for same earliest expiryTimestamp then I have to check for field “caseType”.
What would be the best way to achieve this?