COSMOS DB Find object within an object based on a value

I have multiple JSON objects within items in COSMOS DB. For example: "Fruit": { "Apples": 200, "Oranges": 130, "Strawberries": { "Small": 30, "Large": "Finished" } "Fruit": { "Apples": 78, "Oranges": 90, "Strawberries": { "Small": 10, "Large": 30 } And I want to return all fruit where large is "Finished". So in this example just the… Read More COSMOS DB Find object within an object based on a value

Is there any annotation for creating indexes in Cosmos document?

In JPA we can create indexes for the entity using annotations like – @Table(indexes = @Index(columnList = "firstName")) Do we have a similar way of creating indexes for the Cosmos DB? >Solution : With Spring data cosmos, you can define custom indexing policy using @CosmosIndexingPolicy annotation for your container. Example: @Container(containerName = "users") @CosmosIndexingPolicy( includePaths… Read More Is there any annotation for creating indexes in Cosmos document?

SQL query for grouping by (project, environment) and finding the newest entry for each combination?

I have a table with data that looks like the following project | environment | timestamp —————————————- project1 | dev | 1644515845 project1 | dev | 1644513211 project1 | qa | 1644515542 project2 | dev | 1644513692 project2 | qa | 1644514822 There are multiple projects and each project has multiple environments. There are multiple… Read More SQL query for grouping by (project, environment) and finding the newest entry for each combination?