array of integers #9

benbro opened this Issue Feb 19, 2010 · 0 comments

1 participant


emonogo turns a list of integers to a binary string. Probably because a string is a list in erlang.
Maybe emongo should except strings only as binaries and list of integer will be a list of integers?

In the shell
db.user.insert({k1: "v1", "k2": [1,2]})
{ "_id" : ObjectId("4b7e885bf1e7e6a4f6ac5193"), "k1" : "v1", "k2" : [ 1, 2 ] }

With emongo:
emongo:insert(<<"mydb">>, "user", [{"k1", "v1"}, {"k2", [1, 2]}]).
emongo:find(<<"mydb">>, "user").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment