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

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • Tools
  • 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

  • Strategy to prepare for Terraform Associate Exam Preparation
  • Running crontab on AWS auto scaling group
  • Downgrade from Lollipop to Kitkat for Micromax Canvas A1 (Android One)
  • Cloudflare SSL off vs Flexible Vs Full vs Full Strict
  • Home
  • Important Docker Commands to remember
  • Learn with Gokul
  • How to find the date of the Facebook group it was created
  • How to Root Micromax Canvas A1 (Android one)
  • Install CM11 in Micromax Canvas A1

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