mongo_close()

Read(5499) Label: close, mongo database,

Description:
Close connection to MongoDB database.

Syntax:
mongo_close(fd)

Note:

The external library function (See External Library Guide) closes connection to MongoDB database.

Parameter:

fd 

MongoDB connection object.

Example:

 

A

 

1

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

Connect to a MongoDB.

2

=mongo_close()

Close the connection.