collection.any()
This method return a random document from the given collection. It return null if no document exists.
127.0.0.1:8529@abc_org> db.user.any()
{
"_key" : "17089",
"_id" : "user/17089",
"_rev" : "_cRe1GKq---",
"id" : 1,
"firstName" : "Sailu",
"lastName" : "Ptr",
"age" : 32
}
No comments:
Post a Comment