diff --git a/lib/storage/metadata/mongoclient/readStream.js b/lib/storage/metadata/mongoclient/readStream.js index 3ff54f3e1..97a697bbe 100644 --- a/lib/storage/metadata/mongoclient/readStream.js +++ b/lib/storage/metadata/mongoclient/readStream.js @@ -85,7 +85,8 @@ class MongoReadStream extends Readable { Object.assign(query, searchOptions); } - this._cursor = c.find(query).sort({ + const projection = { 'value.location': 0 }; + this._cursor = c.find(query, { projection }).sort({ _id: options.reverse ? -1 : 1, }); if (options.limit && options.limit !== -1) {