Merge branch 'master' of github.com:louischatriot/nedb

pull/2/head
Louis Chatriot 12 years ago
commit 11a864b1a3
  1. 3
      README.md

@ -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`.
Field names cannot begin by '$' or contain a '.'. Field names cannot begin by '$' or contain a '.'.

Loading…
Cancel
Save