Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1982

Confusing change streams support for $limit

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.4
    • Component/s: None
    • Labels:

      Calling collection.watch() with a variable $limit pipeline argument returns odd errors, like "the limit must be specified as a number" or "the limit must be positive" if hardcoding a positive integer instead of a variable.

      https://docs.mongodb.com/manual/changeStreams/#modify-change-stream-output correctly does not list $limit among the allowed pipeline stages, but shouldn't the errors above be replaced by "$limit is not permitted in a $changeStream pipeline"

       

            Assignee:
            daniel.aprahamian@mongodb.com Daniel Aprahamian (Inactive)
            Reporter:
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: