Closed akshendra closed 6 years ago
How do you know this method works?
According to the docs here https://firebase.google.com/docs/database/web/read-and-write (Update specific fields seconds.) I have also tried the example given in readme for PUT with my firebase config.
Thinking about it, now it is basically the same as POST. A solution will be that when an object is passed as body, we only replace the child nodes by constructing the updates properly before sending on firebase. However that goes against the definition of PUT.
I think it's good as is. Thanks @akshendra!
Possible fix for https://github.com/bluzi/jsonstore/issues/14