Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

217
Vistas
How do I create a Trigger function to listen to changes/updates in a subcollection in firebase?

My goal is to create a trigger functions that listens to updates/changes being made in a subcollection inside of firebase.

Here's how the firebase database is structured. There's a collection named "searchRequests"(PARENT COLLECTION), with the sub-collection named "offers" with the data that i'll like to trigger when a change or update has been made inside the "status" field. image of my firebase database image of firebase database with subcollection

Here's what I have tried so far and many other options but no luck. Hoping a fellow mate from StackOverflow could help :)

const functions = require("firebase-functions");
const admin = require('firebase-admin')
admin.initializeApp()




exports.sendEmailforNewBid = functions.firestore.document('offers/{projectId}')
.onUpdate((snap,ctx)=>{

    const data=snap.data();
    

});
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda