@ -43,8 +43,7 @@ The native types are `String`, `Number`, `Boolean`, `Date` and `null`. You can a
arrays and subdocuments (objects). If a field is `undefined`, it will not be saved (this is different from
arrays and subdocuments (objects). If a field is `undefined`, it will not be saved (this is different from
MongoDB which transforms `undefined` in `null`, something I find counter-intuitive).
MongoDB which transforms `undefined` in `null`, something I find counter-intuitive).
If you specify an `_id` field, it will be used as the document's id, otherwise nedb will generate one randomly.
An `_id` field will be automatically generated by NeDB. It's a 16-characters alphanumerical string that cannot be modified once it has been generated. Unlike with MongoDB, you cannot specify it (that shouldn't be a problem anyway).
Note that the generated `_id` is a simple string, not an `ObjectId`.