[16:30:38] <markizano> So I have a gridFS db in MongoDB and am trying to do a mongodump of the filesystem. However, it's not so simple as just a plain dump as there's metadata in the fs.files collection upon which I want to match and export the fs.chunks as well.
[16:31:15] <markizano> I researched a bit on the aggregation pipeline and while it does extract the results I want using [{$match: ...}, {$lookup: ...}] - I am getting the results in a single document.
[16:31:31] <markizano> Is there something I can do to match against fs.files and export fs.chunks as it's own BSON result?
[16:43:15] <markizano> I think I was looking for: fs.chunks.aggregate([ {$lookup: {from: 'fs.files' ...}, {$match: ...}, {$project: ... } ])