jxmono / crud

:fork_and_knife: CRUD for mono
MIT License
0 stars 1 forks source link

_id is not converted to objectid #12

Closed IonicaBizau closed 11 years ago

IonicaBizau commented 11 years ago

I make a crud request using the following crud object:

{
   "t": "000000000000000000000000",
   "q": { "_id": "523e9d4ce372420413000002" }
}

I get in response three objects that have different _ids. Why? Am I wrong or it's a bug?

IonicaBizau commented 11 years ago

The interesting thing is that I make:

self.emit("getTemplates", ["523e9d4ce372420413000002"], ...)

I get the correct response...

IonicaBizau commented 11 years ago

Same problem appears when deleting templates...

ottiker commented 11 years ago

This issue is part of issue #4.