How to access partition key from an existing table in cosmos db
问题 I'm trying to access only partition key of an existing collection in cosmos db I have gone through official doc and git hub links but no luck. Please help me. Note: I'm able to successfully read and write data using java by using Document Client(SQL api) 回答1: Please try this code: DocumentClient dClient = new DocumentClient(endPoint,primary_key,null,null); String collectionLink = String.format("/dbs/%s/colls/%s", databaseId, collectionId); ResourceResponse<DocumentCollection> response =