Skip to main content

MongoDB Cheatsheet

Mongosh

  • use mongosh to interact with mongodb
$ docker exec -it <mongodb_container_id> /bin/bash
# mongosh --username root
show dbs