readDocument 函数中的 documentLink 是什么?

What is documentLink from the readDocument function?

我想通过分区键和 ID 获取存储过程中的文档。

我猜readDocument是点读的函数

readDocument(String documentLink, RequestOptions options)

它需要一个“documentLink”字符串作为第一个参数。

这是什么?

来自docs,

The format for documentLink is always "dbs/{db identifier}/colls/{coll identifier}/docs/{doc identifier}" only the values within the {} change depending on which method you wish to use to address the resource.

您可以在代码中生成一个

String documentLink = String.format("/dbs/%s/colls/%s/docs/%s", "yourDB", "yourCollection", msg.getId());

msg 是文档