• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • WordPress
  • Android
  • How to
  • About Me

MongoDB Terminal commands – Cheatsheet

September 14, 2020 by Gokul Deepak S 2 Comments

Import Mongodb from csv:

All data should be comma separated and each rows are line separated

mongoimport --db dbname --collection colectionname --type csv --file filename.csv --headerline

To Find the Range of dates

db.softwareInventory.find({ date: { $gte: ISODate("2020-10-16T00:00:00.000Z"), $lt: ISODate("2020-10-16T22:47:55.302Z") } })

Filed Under: MongoDB

About Gokul Deepak S

Leave a ReplyCancel reply

2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Siva G
Siva G
4 years ago

Thank you for your information.. very useful

0
Reply
Gokul Deepak S
Gokul Deepak S
Author
Reply to  Siva G
4 years ago

Happy that it helps

0
Reply

Primary Sidebar

Popular Pages

  • Home
  • Important Docker Commands to remember
  • Terraform Cheat sheet
  • Learn with Gokul
  • CORS error in Apache Tomcat - Solved
  • Runcloud vs SiteGround Comparision
  • Strategy to prepare for Terraform Associate Exam Preparation
  • How to find the date of the Facebook group it was created
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • Running crontab on AWS auto scaling group

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Terraform
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2025 ยท Maintained by GokulDeepak

wpDiscuz