Skip to content

Commit 933c82f

Browse files
committed
Changes to docs
1 parent f249cf4 commit 933c82f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ A simple example of inserting a document.
4747

4848
Important
4949
========
50-
51-
The version V0.8.0 > contains a C/C++ native BSON parser, this leads to some small changes in the way you need to access the
52-
BSON classes as you need to use the right versions of the classes with the right driver.
53-
54-
For the existing javascript driver please reference BSON via
55-
56-
BSON = require('./mongodb').BSONPure
57-
58-
or when using the native bson parser use
59-
60-
BSON = require('./mongodb').BSONNative
6150

6251
To enable the driver to use the C/C++ bson parser pass it the option native_parser:true like below
6352

6453
var client = new Db('integration_tests_20',
6554
new Server("127.0.0.1", 27017),
6655
{native_parser:true});
56+
57+
The version V0.8.0 > contains a C/C++ native BSON parser, this leads to some small changes in the way you need to access the BSON classes as you need to use the right versions of the classes with the right driver.
58+
59+
To access the correct version of BSON objects for your instance do the following
60+
61+
client.bson_serializer.Long
62+
client.bson_serializer.ObjectID
63+
client.bson_serializer.Timestamp
64+
client.bson_serializer.DBRef
65+
client.bson_serializer.Binary
66+
client.bson_serializer.Code
6767

6868
GitHub information
6969
--------

0 commit comments

Comments
 (0)