MongoDB - Tipe Data

Artikel ini adalah bagian dari seri Tutorial MongoDB

Jenis-jenis tipe data dalam MongoDB

  • String: String in mongodb is UTF-8 valid.

  • Integer: store a numerical value. Integer can be 32 bit or 64 bit depending upon your server.

  • Boolean: store a boolean (true/ false) value.

  • Double: store floating point values.

  • Min/ Max keys: compare a value against the lowest and highest BSON elements.

  • Arrays: store arrays or list or multiple values into one key.

  • Timestamp: store timestamp.

  • Object : for embedded documents.

  • Null: store a Null value.

  • Symbol: identical to a string, for languages with a specific symbol type.

  • Date : store the current date or time in UNIX time format.

  • Object ID: store the document ID.

  • Binary data: store binay data.

  • Code: store javascript code into document.

  • Regular expression: store regular expression