IndexedDB and Relationships
- by Josh Johnson
Can I create relationships between my object stores in IndexedDB?
For example, I have two object stores: artist and album. An artist has a one-to-many relationship with an album. album.artistId relates the album to artist.id.
I'm thinking along the lines of Hibernate here. I would like to do a query for artists and have the albums belonging to that artist returned as an array called artists on the album object.
artist.albums = [];