Skip to content

Commit

Permalink
README tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan committed Jul 14, 2011
1 parent bb0f3bf commit 49e4926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ em-mongo methods no longer directly accept callbacks and instead return EM::Mong

to this

my_collection.find().callback { |doc| p doc }
my_collection.first().callback { |doc| p doc }

EM::Mongo::Collection#find now returns a cursor, not an array, to maintain compatibility with the mongo-ruby-driver. This provides a great deal more flexibility, but requires you to select a specific cursor method to actually fetch data from the server, such as #to_a or #next

Expand Down

0 comments on commit 49e4926

Please sign in to comment.