how to store a db record/document in local storage?

When I retrieve a record / document from the database, how can I store it in a local storage variable? I know how to access local storage, but I am not entirely sure how to access the record, so that I can store it in local storage.
1 person has
this question
+1
This topic is no longer open for comments or replies.