Dynamic query in azure-spring-data-cosmos? #26186
Labels
azure-spring
All azure-spring related issues
azure-spring-cosmos
Spring cosmos related issues.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
I have a use case for filtering data based on the different filter criteria provided by the clients. So, I would like to form a dynamic query depending on whether the input is provided by the user or not.
For eg: if the user has provided filter criteria a, b and c then the query should be something like "Select * from xyz where a = something and b = something and c = something". But if the user has provided only a and c then the query must be something like "Select * from xyz where a = something and c = something".
I think this is something that can be achieved using 'com.azure.spring.data.cosmos.core.query.Criteria' but I am not able to figure out how. Is there any documentation/tutorial/example to explain how to use the library?
The text was updated successfully, but these errors were encountered: