Saturday, 6 May 2017

MongoDB - $exists and $regex operator

MongoDB - $exists and $regex operator
//

$exists

As mongoDB is  schema less. In database some table can have different schema. for example if we have Persons database and

in that database we have people collection.  If we need to know that whether a certain field exists in collection or not.

Syntax: { field: { $exists:
Read More about it from the following link : http://coding-guru.com/mongodb-exists-and-regex-operator/ posted by Maz


Previous Post
Next Post

About Author

0 comments: