Skip to content

kpkonghk01/mongo-compass-exported-collection-data-separator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo compass exported collection data separator

Why

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.

Usage

  1. Use MongoDB Compass to export the target collection into ./collections
  2. run
    node index.js <readLineLimit?: int>
    
  3. Separated records will be placed in ./output/<collection name>/<oid>.json
  4. Do the diff you want

Demo

result example

About

Separate mongo compass exported collection data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published