[DOCS-12788] Getting Started documentation refers to old version of Node Driver Created: 10/Jun/19  Updated: 30/Oct/23  Resolved: 11/Sep/19

Status: Closed
Project: Documentation
Component/s: drivers, manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Daniel Aprahamian (Inactive) Assignee: Andrew Feierabend (Inactive)
Resolution: Fixed Votes: 0
Labels: docs-onboarding-candidate
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 4 years, 22 weeks ago
Epic Link: DOCSP-1769

 Description   

Description

I noticed that a few pages were referring to the 2.x version of the Node Driver. For example:

var MongoClient = require('mongodb').MongoClient;
 
var uri = "mongodb://user123:p455w0rd@gettingstarted-shard-00-00-hyjsm.mongodb.net:27017,gettingstarted-shard-00-01-hyjsm.mongodb.net:27017,gettingstarted-shard-00-02-hyjsm.mongodb.net:27017/test?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin";
MongoClient.connect(uri, function(err, db) {
  // Paste the following examples here
 
  db.close();
});

For the 3.x version of the driver, it should look more like:

const { MongoClient } = require('mongodb');
 
const uri = "mongodb://user123:p455w0rd@gettingstarted-shard-00-00-hyjsm.mongodb.net:27017,gettingstarted-shard-00-01-hyjsm.mongodb.net:27017,gettingstarted-shard-00-02-hyjsm.mongodb.net:27017/test?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin";
 
const client = new MongoClient(uri);
client.connect().then(async function() {
  // Paste the following examples here
 
  await client.close();
});

A/C

  1. All links in getting started page (https://docs.mongodb.com/manual/tutorial/getting-started/), should point to 3.x version of that link
  2. In https://docs.mongodb.com/manual/tutorial/atlas-free-tier-setup/#connect-to-the-cluster > Node tab > Connect to Cluster > code should be for 3.x version of the driver as stated above

 Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 11/Sep/19 ]

Author:

{'email': 'andrew.feierabend@bananajr-2.local', 'name': 'Andrew Feierabend'}

Message: DOCS-12788 updated node links from v2.2 -> v3.2
Branch: v3.6
https://github.com/mongodb/docs/commit/06a9962aa21971940b572605e5305fee5d5fb6ca

Comment by Githook User [ 11/Sep/19 ]

Author:

{'email': 'andrew.feierabend@bananajr-2.local', 'name': 'Andrew Feierabend'}

Message: DOCS-12788 updated node links from v2.2 -> v3.2
Branch: v4.0
https://github.com/mongodb/docs/commit/f531fb0a8c76cda30b4eaf0349f5fb3bf5c4da81

Comment by Githook User [ 11/Sep/19 ]

Author:

{'email': 'andrew.feierabend@bananajr-2.local', 'name': 'Andrew Feierabend'}

Message: DOCS-12788 updated node links from v2.2 -> v3.2
Branch: master
https://github.com/mongodb/docs/commit/e0a23c2047b22a98f041a0560690852ee297efe6

Generated at Thu Feb 08 08:06:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.