Azure 如何设置;饲料选项“;在DocumentDB中的存储过程中?

Azure 如何设置;饲料选项“;在DocumentDB中的存储过程中?,azure,azure-cosmosdb,Azure,Azure Cosmosdb,我正在门户内编辑DocumentDB中的存储过程 从SP azure提供的示例开始 在该部分: var isAccepted = collection.queryDocuments( collection.getSelfLink(), 'SELECT * FROM r WHERE r.ProductId = "00000000-0000-0000-0000-000000000000"', function (err, feed, options) { i

我正在门户内编辑DocumentDB中的存储过程

从SP azure提供的示例开始

在该部分:

 var isAccepted = collection.queryDocuments(
    collection.getSelfLink(),
    'SELECT * FROM r WHERE r.ProductId = "00000000-0000-0000-0000-000000000000"',
    function (err, feed, options) {
        if (err) throw err;
feed只能得到100个结果。我如何改变它?
在哪里可以找到此函数的引用?

您需要
FeedOptions
对象的
pageSize
参数
FeedOptions
QueryDocuments(…)
调用的第三个参数

以下是指向it文档的链接:

要使页面大小为1000,更新的代码段如下所示:

var isAccepted = collection.queryDocuments(
  collection.getSelfLink(),
  'SELECT * FROM r WHERE r.ProductId = "00000000-0000-0000-0000-000000000000"',
  {pageSize: 1000},
  function (err, feed, options) {
    if (err) throw err;