MongoDB - Datatypes
In this bankruptcy MongoDB - Datatypes : MongoDB helps many datatypes. Some of them are
String − This is the maximum usually used datatype to store the statistics. String in MongoDB ought to be UTF-eight legitimate.
Integer − This kind is used to save a numerical fee. Integer may be 32 bit or 64 bit relying upon your server.
Boolean − This kind is used to shop a boolean (real/ false) fee.
Double − This kind is used to store floating factor values.
Min/ Max keys − This kind is used to evaluate a price against the bottom and maximum BSON factors.
Arrays − This type is used to shop arrays or listing or more than one values into one key.
Timestamp − ctimestamp. This can be handy for recording whilst a report has been changed or introduced.
Object − This datatype is used for embedded documents.
Null − This type is used to keep a Null cost.
Symbol − This datatype is used identically to a string; but, it's usually reserved for languages that use a particular symbol kind.
Date − This datatype is used to shop the cutting-edge date or time in UNIX time format. You can specify your own date time by growing item of Date and passing day, month, 12 months into it.
Object ID − This datatype is used to store the report’s ID.
Binary statistics − This datatype is used to keep binary statistics.
Regular expression − This datatype is used to keep everyday expression.