Closed christopheranderson closed 4 years ago
It is possible in Cosmos DB to set the partition key on a sub-object like so:
{ "path": { "to": { "partitionKey": "foo" } } }
where the paths would be ["/path/to/partitionKey"] in the collection settings.
["/path/to/partitionKey"]
In spring-data-cosmosdb, it appears you can only set it on the root object.
Ideally, we could support setting it on a leaf node as in the above sample.
Thanks for issue this. For now we only support at most one partitionKey from root Object.
Closing it here as this is being tracked in a separate repo.
It is possible in Cosmos DB to set the partition key on a sub-object like so:
where the paths would be
["/path/to/partitionKey"]
in the collection settings.In spring-data-cosmosdb, it appears you can only set it on the root object.
Ideally, we could support setting it on a leaf node as in the above sample.