-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.4
-
Component/s: None
-
Labels:
-
Empty show more show less
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"