update types in example

This commit is contained in:
Mike Dirolf 2009-03-12 15:33:13 -04:00
parent 7e6e11ba99
commit d3594fe8b5

View File

@ -25,8 +25,8 @@ coll.insert('array' => [1, 2, 3],
'float' => 33.33333,
'regex' => /foobar/i,
'boolean' => true,
'$where' => 'this.x == 3', # special case of string
'dbref' => DBRef.new(nil, 'dbref', db, coll.name, ObjectID.new),
'$where' => Code.new('this.x == 3'),
'dbref' => DBRef.new(coll.name, ObjectID.new),
# NOTE: the undefined type is not saved to the database properly. This is a
# Mongo bug. However, the undefined type may go away completely.