ydn db - IndexedDB using YDN-DB: How to query object store on multiple filters -
working on offline html5 project, have next store:
outreach_answers = { name: 'outreach_answers', keypath: ['device_unique_id', 'outreach_id', 'question_id'], indexes: [ { keypath: 'outreach_id' }, { keypath: 'section_id' }, { keypath: 'question_id' }, { keypath: 'answer' } ] } i need create query such this:
select records outreach_answers question_id = 12 , section_id = 2 , outreach_id = 'ab-56' most of methods have been able utilize (e.g. db.get(), db.values() or db.from()...where().list()) seem quite restrictive.
of these, lastly method seemed promising, until required run query should filter on question_id, section_id , outreach_id @ same time.
thank in advance!
you can find article multiple filtered query ydn-db , tips on this answer.
indexeddb ydn-db
No comments:
Post a Comment