English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
MongoDB supporta molti tipi di dati. Alcuni di essi sono:
String −Questo è il tipo di dati più utilizzato per memorizzare dati. Le stringhe in MongoDB devono essere UTF-8 validi.
Integer −Questo tipo di dati viene utilizzato per memorizzare numeri. Gli interi possono essere a 32 bit o 64 bit, a seconda del server.
Boolean −Questo tipo di dati viene utilizzato per memorizzare valori booleani (true / false).
Double −Questo tipo di dati viene utilizzato per memorizzare valori a virgola mobile.
Chiavi Min/Max −Questo tipo di dati viene utilizzato per confrontare i valori con gli elementi BSON più bassi e più alti.
Arrays − This type is used to store arrays or lists or multiple values in a single key.
Timestamp− ctimestamp (timestamp). This can be easily recorded when the document is modified or added.
Object − This data type is used for embedded documents.
Null − This type is used to store Null values.
Symbol− This data type is used in the same way as strings; however, it is usually reserved for languages that use specific symbol types.
Date − This data type is used to store the current date or time in UNIX time format. You can specify your own date and time by creating a Date object and passing the date, month, and year to it.
Object ID − This data type is used to store the document's ID.
Binary data − This data type is used to store binary data.
Code − This data type is used to store JavaScript code in documents.
Regular expression − This data type is used to store regular expressions.