I have an employee dto with department as partitionKey.
What I tried:
List<Document> documentList = documentClient.queryDocuments(getCollection().getSelfLink(),"SELECT * FROM root r WHERE r.partitionKey ='" + partitionKey+"'", null).getQueryIterable().toList();
I end up getting IllegalStateException state exception from java api and query exporter also did't give any output. Any help is highly appreciable.
Partial answer:
Given the name of Partition Key attribute is department, please change your query to:
List<Document> documentList =
documentClient.queryDocuments(
getCollection().getSelfLink(),
"SELECT * FROM root r WHERE r.department ='" +
partitionKey + "'", null).getQueryIterable().toList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With