Today I learned about cursors. It’s a way to mark the objectStore and from then you can keep or delete data.
What I needed:
- store.index(‘the-index-you-want’).openCursor()
- cursor.advance(numberOfItemsYouWant)
- cursor.delete()
- cursor.continue()
Valuable docs and videos: Sarah Clarke’s course on IndexDB
Another Sarah Clarke’s course (almost the same, but I could focus more on the slides)
and indications on Jake Archibald’s github
Might be valuable later:
And lots of info I need for this course: Google Study Guide