Open antonkomarev opened 5 years ago
This is going to take a bit of time to implement. The easy part is toObject
, but getting it back and turning it into a resource is something I've done before personally, but it is not implemented in the core library yet
@nicklandgrebe maybe we could do this task in 2 steps? It will be much better if there will be toObject
converter at least.
I'm trying to
put
received resource to IndexedDB:But there is an error:
My next try was to represent resource as object valid for cloning, but there is no such method:
Method
toArray
applicable only for collections, and not working too:So, my questions are:
put
it to IndexedDBget
it from IndexedDB