Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16258

Doc of $setWindowFields should explain any guarantees for the output order of documents

    • 3

      The documentation of $setWindowFields should specify whether there are any guarantees for the output order of documents. Intuitively, you would assume that the documents are ordered by { partitionBy : 1, sortBy : 1 }, and in practice, this seems to be the case. However, this is not explicitly mentioned in the documentation, so developers cannot rely on it.

      Edit: Here is the link to the page: https://www.mongodb.com/docs/manual/reference/operator/aggregation/setWindowFields/

            Assignee:
            jason.price@mongodb.com Jason Price
            Reporter:
            andre.spiegel@mongodb.com Andre Spiegel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              26 weeks, 3 days ago