From 2375b5acd2a7272f2edf07331ccd09aad0e3bc6a Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Thu, 30 May 2013 14:32:46 +0300 Subject: [PATCH] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0214f60..a1fd0d5 100644 --- a/README.md +++ b/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 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. -Note that the generated `_id` is a simple string, not an `ObjectId`. +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). Field names cannot begin by '$' or contain a '.'.