Monday, September 16, 2019

Rails & Mongo - connecting to Mongodb from rails console


client= Mongo::Client.new('mongodb://username:password@serverIP:27017/databaseName?authSource=authSource db')

db = client.database

db.collections

No comments:

Post a Comment

Followers

Blog Archive