Open NullVoxPopuli opened 5 years ago
Yeah, jsonapi is the one true way.
all the information is just right there :)
Just need to figure out how to get serialization and deserialization working better.
On the plus side, with jsonapi, we can delete the serializer for localforage-adapter :)
Not sure if this'd be solved in adapter-space, or if I've configured something wrong. But I have the following models:
Identity
User
Contact
Message
My Adapter and Serializer config:
The problem I'm having is that I have a
Message
with sender id of a contact.Here is the current state of indexeddb so, it looks like the relationship information in localforage loses the type.
I almost wonder if this adapter should just use jsonapi for storage, since it's the most semantically correct for relational data.