top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+3 votes
60 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 Google+ Share Button LinkedIn Share Button Multiple Social 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?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...