I'm trying to do this:
database.collection('UsuariosDev').where('Telefono', '==', textInput.current.value)
.update({
citas: firebase.firestore.FieldValue.arrayUnion(database.doc('NegociosDev/Peluquerías/Negocios/PR01/citas/' + docRef.id))
})
Get the doc from the collection "UsuariosDev" where "Telefono" equals "textInput.current.value", and then update it. But it seems like I can't use "update" next to "where". Any ideas?