stackla.blogg.se

Tableplus mongodb connection
Tableplus mongodb connection











const MongoClient = require('mongodb').MongoClient Ĭonst url = 'mongodb://localhost:50000,localhost:50001'

tableplus mongodb connection

In the following example, the connection string specifies the mongos instances running on localhost:50000 and localhost:50001. To connect to a sharded cluster, specify the mongos instance or instances in the URI connection string. const MongoClient = require('mongodb').MongoClient Ĭonst url = 'mongodb://localhost:27017,localhost:27018/?replicaSet=foo' Ĭonsole.log("Connected correctly to server") In the following example, the connection string specifies two of the replica set members running on localhost:27017 and localhost:27018 and the name of the replica set ( foo). Include a seedlist of replica set members and the name of the replica set in the Use connect method to connect to the ServerĬonsole.log("Connected successfully to server") įor more information on the URI connection string, see

tableplus mongodb connection

const MongoClient = require('mongodb').MongoClient

tableplus mongodb connection

Specifies connecting to a MongoDB instance that is running on To connect to a single MongoDB instance, specify the URI of the MongoDB Use the nnect method to connect to a running MongoDB deployment.













Tableplus mongodb connection