-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.3.2
-
Component/s: Core
-
Empty show more show less
The code below produces the error "$match with $text is only allowed as the first pipeline stage", even though $match with $text is the only pipeline stage. Is there a subtle syntax error somewhere, or what else might be going on?
const collectionChangeStream = collection.watch([ { $match: { $text: { $search: 'cake' } } }, ]); collectionChangeStream.on('change', next => { console.log(next); });
- depends on
-
SERVER-43285 Improve error message when certain operators are used in change streams
- Backlog