Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

mongodb data types

String − This is the 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.

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 binary data.

Code − This datatype is used to store JavaScript code into the document.

Regular expression − This datatype is used to store regular expression.
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript add data to form 
Javascript :: javasript document referrer 
Javascript :: npm run js file from command line 
Javascript :: how to sort an array of object 
Javascript :: js get selected option elemeng 
Javascript :: how to convert set to a string in js 
Javascript :: how to compare elements in an array 
Javascript :: npm is not recognized 
Javascript :: javascript code to calculate compound interest 
Javascript :: js copy array into another 
Javascript :: remove .html from url express js 
Javascript :: calculate average javascript 
Javascript :: how to reade selected csv file data in node j s 
Javascript :: stylesheet create 
Javascript :: call button click event in javascript 
Javascript :: moment.add 
Javascript :: Iteration over JS object 
Javascript :: regex usage 
Javascript :: how to display array values in javascript 
Javascript :: how to appendChild in the begin of the div javascript 
Javascript :: javascript sum of arguments 
Javascript :: check if all values in array are negative javascript 
Javascript :: winston logger creating particular log file for each level 
Javascript :: javascript whitespace strip 
Javascript :: status 502 bad api gateway error solution for aws lambda 
Javascript :: send csrf token ajax laravel 
Javascript :: search an array with regex javascript filter 
Javascript :: discord bot javascript 
Javascript :: javascript increment by 1 
Javascript :: graphql request with jquery ajax 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =