Open bebor opened 7 years ago
Hi,
Please give me an example code in order to check, find method works, also findbyid method works. Next week i will commit some new features like operators and PUT methods fix.
"connector": "apachecouchdb"
_design/loopback: byModel
, and also DoCodesystemEntity byCodesystemId
{
"_id": "something@A00011099",
"codesystemId": "something",
... some properties ..
"loopbackModel": "DoCodesystemEntity",
"_rev": "1-7bcce5bb7a45f83ce75b7e9ed59200f3"
}
my code is:
var filter = {
'where': {
'codesystemId': 'something'
}
}
DoCodesystemEntity.find(filter, function (err, items) {
if (err) {
cb(err)
} else {
// here items is an empty array -- nothing found
cb(null, items)
}
})
datasources.json
to use connector couchdb
[which is the one i mentioned before], then the same code returns all the items fullfilling that condition, as expected.if you can tell me what exact information i can provide, for better investigation, i'll be happy to do so.
on server boot the automatically generated indexes/views are created correctly. but then the
Model.find()
never finds anything.seems to me to be solely the issue of your connector, because:
Model.find()
works just fine [note: at this point the indexes are already created (by you connector).]what could be the issue?