conn = new Mongo("10.171.0.39:27017")
// You need to change hostname and port name according to your second instance.
db = conn.getDB("local")
// Specify name of your database.
show collections
This command will list out all collections in another instance.
Now open a MongoJS window, and execute above script in same order.
You will observe when we execute show collection command, ADS only list collections of your current instance and not of the one you specified in connectionstring.
Actual result:
Using MongoJS we are not able to connect to a mongodatabase server running at different location.
Expected Result:
Using MongoJS we should also be able to connect to a server instance running on different location.
|
93 KB
Verified in ADS 17.0.0-rc-36.
Now we are able to connect to different connections using MongoJS.
Issue #13832 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 17.0.0-rc-35, mongo-jdbc 1.4.7.8, 2.4.7.8 |
No time estimate |
1 issue link |
relates to #13813
Issue #13813MongoJS -> USE command does not change the database context even though it returns success. |
Verified in ADS 17.0.0-rc-36.
Now we are able to connect to different connections using MongoJS.