tylermcginnis/re-base

Possible to push child data with custom key?

nicksantan opened this issue · 1 comments

Hi there,

Please forgive the question if it's ignorant. When I use .push() I get a child with a firebase push id as the key. I would like to define the key myself (e.g. a project name). Is this possible? Or is the best way to accomplish this by taking a copy of the endpoint one level up with .fetch(), modifying it locally, and then using .update() or .post() to update the data at that endpoint?

@ChubbRck you could add the key you want in the endpoint ex. /users/<your-custom-key> and then post or update depending on your needs.