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

161
Vistas
firestore - retrieve data by filtering arrayField

I am storing data in firestore in the format

feed: { userID, title, description, ..., hideFor[userID] }

I want to query feeds such that loggedin user should not see the feed if his/her id is listed in hideFor[] array. Which firestore query method/operator can help me in this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You want to use the in operator https://firebase.google.com/docs/firestore/query-data/queries#in_and_array-contains-any

If you use angular/fire then it would be something along like

this.afs.collection('feed', q=> { return  q.where( userId, 'in','hideFor'})

edit: realized you wanted not in then the operator is not-in but same pattern

about 4 years ago · Juan Pablo Isaza Denunciar
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