microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
94 stars 64 forks source link

EnableCrossPartitionQuery Support #373

Closed vigneshklncit closed 4 years ago

vigneshklncit commented 5 years ago

How can i enable cross partition queries on my repositories in spring data?

I am getting error com.microsoft.azure.documentdb.DocumentClientException: Cross partition query is required but disabled. Please set x-ms-documentdb-query-enablecrosspartition to true, specify x-ms-documentdb-partitionkey, or revise your query to avoid this exception.

sophiaso commented 5 years ago

@vigneshklncit Could you check whether this document helps?

kushagraThapar commented 4 years ago

@vigneshklncit Cross partition query is supported now in v2.1.8

vigneshklncit commented 4 years ago

Sure. Thanks.Will check