I've just been introduced to pouchdb and as a side project, I want to create a bible app. The bible content is stored in a json file (js/bible.json). As users read the bible they can favorite different verse and add notes which would be saved with pouchdb. All of these works fine. The problem is, I'd like to display an icon for favorite verses which has been stored with pouchdb.
How do I query pouchdb data base to check if a verse has been "favorited" and display an icon?
I've explored so many options and it's not working. Any help?
答案 0 :(得分:0)
您可以使用pouchdb-find
:http://nolanlawson.github.io/pouchdb-find/
请注意该演示如何通过各种标准(首次亮相,排名等)查找任天堂角色。同样,您可以按doc.isFavorited
搜索您的圣经条目。