Created
June 6, 2018 09:58
-
-
Save mattb20/9e09ff47365d4bf924b21473a04ada8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MongoClient = require('mongodb').MongoClient; | |
var uri = "mongodb+srv://kay:[email protected]/test"; | |
MongoClient.connect(uri, function(err, client) { | |
const collection = client.db("test").collection("devices"); | |
// perform actions on the collection object | |
client.close(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment