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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -