mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Also support the new "projection" field inside the decision of using oplog for a published cursor or not
This commit is contained in:
@@ -984,9 +984,10 @@ OplogObserveDriver.cursorSupported = function (cursorDescription, matcher) {
|
||||
|
||||
// If a fields projection option is given check if it is supported by
|
||||
// minimongo (some operators are not supported).
|
||||
if (options.fields) {
|
||||
const fields = options.fields || options.projection;
|
||||
if (fields) {
|
||||
try {
|
||||
LocalCollection._checkSupportedProjection(options.fields);
|
||||
LocalCollection._checkSupportedProjection(fields);
|
||||
} catch (e) {
|
||||
if (e.name === "MinimongoError") {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user