@mongosh/snippet-spawn-mongod

1.0.1 • Public • Published

spawn-mongod

Spin up a local mongod process.

// Copy data from a collection on the current server to a new server:
> const mongod = spawnMongod({ version: 'latest', port: 27097 })
> mongod.waitReady
listening!
> db.coll.find().forEach(doc => mongod.getDB('test').coll.insertOne(doc))

Readme

Keywords

none

Package Sidebar

Install

npm i @mongosh/snippet-spawn-mongod

Weekly Downloads

2

Version

1.0.1

License

Apache-2.0

Unpacked Size

14.2 kB

Total Files

4

Last publish

Collaborators

  • orechova
  • himanshusinghs
  • alexander_schroll
  • c-buckingham
  • lerouxb
  • durran
  • alena.khineika
  • mmarcon
  • mbroadst
  • mcasimir
  • rhysm
  • devtoolsbot
  • addaleax
  • gribnoysup