• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

MongoDB Data Types

 MongoDB supports many datatypes

Types of MongoDB datatypes

-String : This is most commonly used datatype to store the data. String in mongodb must be UTF-8 valid.

-Integer : This type is used to store a numerical value. Integer can be 32 bit or 64 bit depending upon your server.

-Boolean : This type is used to store a boolean (true/ false) value.

-Double : This type is used to store floating point values.

-Min/ Max keys : This type is used to compare a value against the lowest and highest BSON elements.

-Arrays : This type is used to store arrays or list or multiple values into one key.

-Timestamp : ctimestamp. This can be handy for recording when a document has been modified or added.

-Object : This datatype is used for embedded documents.

These core tutorials will help you to learn 
the fundamentals of Mongo DB.
For an in-depth understanding and practical experience, 
explore Online Mongo DB Training.

-Null : This type is used to store a Null value.

-Symbol : This datatype is used identically to a string however, it’s generally reserved for languages that use a specific symbol type.

-Date : This datatype is used to store the current date or time in UNIX time format. You can specify your own date time by creating object of Date and passing day, month, year into it.

-Object ID : This datatype is used to store the document’s ID.

-Binary data : This datatype is used to store binay data.

-Code : This datatype is used to store javascript code into document.

-Regular expression : This datatype is used to store regular expression.

For indepth understanding click on

Summary
Review Date
Reviewed Item
MongoDB Data Types
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on MongoDB Data Types"

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.