?
사용자
mongosh로 MongoDB 데이터 삽입, 조회, 삭제 원라이너
mongosh를 사용하여 MongoDB 데이터베이스에 데이터를 삽입, 조회하고 삭제하는 CLI 명령어 레시피입니다. 개발 및 테스트 환경에서 유용합니다.
#mongosh#mongodb#데이터베이스#원라이너
recipe.md
mongosh --host localhost --port 27017 --username root --password example --authenticationDatabase admin --quiet "db.mycollection.insertOne({ name: 'test_user', age: 30 }); db.mycollection.find({ name: 'test_user' }); db.mycollection.deleteOne({ name: 'test_user' });"
5
스크랩
8
좋아요
0
댓글