Skip to content

Instantly share code, notes, and snippets.

addRecipe({ state }, payload) {
firebase
.database()
.ref('users')
.child(state.user.user.uid)
.push({
image: payload.recipe.image,
label: payload.recipe.label,
ingredients: payload.recipe.ingredientLines
});