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

support for firebase's push() #4

Open
kylemac opened this issue Feb 1, 2016 · 0 comments
Open

support for firebase's push() #4

kylemac opened this issue Feb 1, 2016 · 0 comments

Comments

@kylemac
Copy link

kylemac commented Feb 1, 2016

I have an untested branch that has this working, but wanted to know if you'd be interested in this before we pose a PR.

in short, firebase has support for saving lists of data via their push()function (as opposed to update()). this allows us to tack on object for a user has many <foo> date. right now the save()function only accommodates a regular firebase update()

since you need to get a reference to the original child object first, the proposed interface is:

// wherein `entry` is a new has-many object 
// and `userId` is the child it will be pushed to
controller.storage.users.push(userId, entry)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant