derbyjs - Results from MongoDB -


i'm running 2 issues derby , mongo. come mysql , redis background maybe i'm doing wrong?

1) seems can't search id type objectid.

model.query("users").bykey(params.userid); 

will match records _id string.. guess okay, except when data "updated" racer create new record objectid _id! can't ever retrieve document id i've inserted racer!

2) every time query object of objects such as:

{ '$spec': true,      '4fcd4c8e6c8c89d97ed90f4a': { "username": ... },     '4fcd4c8e6c8c89d97ed90f4b': { "username": ... }, 

which means have convert list of objects. wrote function creates list of _id's, assigns model variable use reflist. feels such hack, can't right way it.

queries substantially updated in version 0.3.11. models have built-in model.filter() , model.sort() methods replace need manually build list of keys , emit more efficient array update events derby.

please see queries readme.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -