No Results coming back from pouchdb-find query -
trying query on json below, getting empty array query, clues, first time have user pouchdb , pouchdb-find.
groupid passed in parameter, create index wrapped in promise call, _db.find after index created.
_db.createindex({ index: { fields: ['og_group_ref.und[0].target_id', 'type'] } _db.find({ selector: { "og_group_ref.und[0].target_id": groupid //type: 'student' } json "og_group_ref": {"und": [{"target_id": "49"}]},
any examples of complex selectors appreciated.
selecting particular element in array not supported mango selector syntax. have move field out of array; sorry.
edit: actually, hack, think og_group_ref.und.0.target_id
, don't know if works in cloudant. might work in pouchdb.
Comments
Post a Comment