mongo_close ()

Read(223) Label: close, mongo database,

Description:
   
Close conncetion to MongoDB database.

Syntax:
     mongo_close(fd)

Note:

The function closes conncetion to MongoDB database.

Parameters:

fd

MongoDB connection object

Example:

 

A

 

1

=mongo_open("mongodb://localhost:27017/mydb")

Connect to a MongoDB

2

=mongo_close(A1)

Close the connection