Sometimes we're doing data migration and want to diff the collection before and after, but the file is too large to be open for editor.
- Use MongoDB Compass to export the target collection into
./collections
- run
node index.js <readLineLimit?: int>
- Separated records will be placed in
./output/<collection name>/<oid>.json
- Do the diff you want