Azure/azure-cosmos-python

limit the number of items returned queryItems

Opened this issue · 1 comments

How do I limit the number of items returned when using QueryItems? I've tried both maxItemCount and pageSize, both don't seem to work:

options = {}
options['enableCrossPartitionQuery'] = True
options['pageSize'] = 5        # also tried maxItemCount

self.app_cosmos_client.QueryItems(
    database_or_Container_link=collection_link,
    query=f"""
        SELECT * FROM c
      """,
      options=options
)

any updates on this? I have the same issue. maxItemCount does not work.