We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65d1ccf commit 3d32864Copy full SHA for 3d32864
lib/core/sdam/topology_description.js
@@ -152,7 +152,7 @@ class TopologyDescription {
152
serverDescriptions.set(address, serverDescription);
153
const isReplicaSet = this.options.replicaSet || this.options.setName || this.options.rs_name;
154
// _directConnection is used to pass in the authored directConnection and not get the default
155
- const isDirectConnection = this.options._directConnection === false;
+ const isDirectConnection = this.options._directConnection === true;
156
if (serverType === ServerType.Mongos && !isReplicaSet && !isDirectConnection) {
157
return new TopologyDescription(
158
TopologyType.Sharded,
0 commit comments