db.getSession() in mongoDB

db.getSession()

This method returns the current session of the database.


Returns: Session ID.

Syntax:

db.getSession()


Example

MongoDB

db.getSession()

Output:


session { "id" : UUID("e22f1f82-de47-43db-b9ad-462605ea1262") }



No comments:

Post a Comment