top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MongoDB: How to get prototype information for a method in mongoDB ?

+3 votes
297 views
MongoDB: How to get prototype information for a method in mongoDB ?
posted Jul 5, 2015 by Harshita

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Following is the syntax to get method details in mongo database.

db.prototype."command_name"

For example: If you want to get prototype details of "find" method then use command in the following way.
db.prototype.find

Note: Avoid to use parenthesis "()" after the command name.

answer Jul 5, 2015 by Alok
Similar Questions
0 votes

How to get all query which related 1 collection in mongodb? for oracle,we can get all query from system view like v$sql, but I am not sure if mongodb have this system view to see all query related 1 special collection?

...