• 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

  • Home
  • Important Docker Commands to remember
  • How to Show Only Post Title in Label Page
  • Cloudflare SSL off vs Flexible Vs Full vs Full Strict
  • Ways to Earn from Online
  • All pages in my website works except wp-admin
  • Add Text Start or End in each line - Notepad++
  • PM2 Cheatsheet - Important Commands
  • Custom Breadcrumbs in Genesis Theme
  • How to convert CR2 to JPG format for free and easy

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