• 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

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

Primary Sidebar

Popular Pages

  • Home

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