Skip to content

Instantly share code, notes, and snippets.

@afonsoaugusto
Last active May 31, 2018 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afonsoaugusto/7d4fa93a22b56a57f9e005ee16818eb9 to your computer and use it in GitHub Desktop.
Save afonsoaugusto/7d4fa93a22b56a57f9e005ee16818eb9 to your computer and use it in GitHub Desktop.
mongo "mongodb+srv://sandbox-felrd.mongodb.net/test" --username m001-student
pwd: m001-mongodb-basics
load("loadMovieDetailsDataset.js")
use video
db.getCollectionInfos()
db.getCollectionInfos( { name: "movieDetails" } )
var data = db.movieDetails.findOne();
for (var key in data) { print (key) ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment