Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
*Location*: https://docs.couchbase.com/nodejs-sdk/current/howtos/managing-connections.html#
*Referrer*: https://docs.couchbase.com/nodejs-sdk/current/hello-world/start-using-sdk.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36
*Screen Resolution*: 1920 x 1080*Location*: https://docs.couchbase.com/nodejs-sdk/current/howtos/managing-connections.html# *Referrer*: https://docs.couchbase.com/nodejs-sdk/current/hello-world/start-using-sdk.html *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36 *Screen Resolution*: 1920 x 1080
Description
These docs say to use disconnect(), but that function no longer exists in 3.x and is replaced by close().
Also...I noticed that this is the only place we mention the need to close() a connection and it's quite buried. I think that we should include an example of using close() in the getting started section.
Lastly, I think it would be non-intuitive to a user to look for "Managing Connections" in the "Managing Couchbase" section..."Managing Couchbase" is related to Server configuration, etc whereas "Managing Connections" is related to the SDK and I think needs to be called out separately (or possibly grouped within another area)
Reporter: Perry
E-mail: perry@couchbase.com