Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

2 New functions #27

Open
m00nwtchr opened this issue Oct 21, 2018 · 3 comments
Open

2 New functions #27

m00nwtchr opened this issue Oct 21, 2018 · 3 comments

Comments

@m00nwtchr
Copy link

m00nwtchr commented Oct 21, 2018

I think that a set({ x: "h", y: "e", z: "llo" }) (sets database contents to the object)
and a getAsObject() (gets the contents of a database as a object in form {key1: value1, key2: value2, ...}) function would be nice 👍

@aphelionz
Copy link
Contributor

Hello @lukas2005! Sorry for the delay in responding, I only recently starting working on this.

While you can't yet do set with a single object as a parameter, you can do something like set('snapshot', { ... }) and get('snapshot') which will both set and get a full JSON object. This is what I've done on applications that I've worked on. Is this helpful? If not, let's talk

@drawnwren
Copy link

drawnwren commented Jun 19, 2019

I was looking for a similar feature before I came across this issue. I probably missed it in the documentation, but it could be nice if this was documented more clearly.

@m00nwtchr
Copy link
Author

m00nwtchr commented Jun 19, 2019

Well this is not a thing in the documentation. Just a way to achieve similar results / functionality

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants