O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data types

As in other database engines, the fields should be defined with a data type. The following are all valid types:

  • String
  • Date
  • Number
  • Boolean
  • Array
  • ObjectId
  • Buffer
  • Mixed

Perhaps, you are familiar will almost all the data types listed. The Mixed data type basically allows you to define a field whose value can be of any data type. Personally, we don't recommend the use of this data type because maintaining a Mixed field can become hard, and you may want to write boilerplate code to use it.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required