Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
firestore: recupera datos filtrando arrayField

Estoy almacenando datos en firestore en el formato

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

Quiero consultar las fuentes para que el usuario que inició sesión no vea la fuente si su identificación aparece en la matriz hideFor[] . ¿Qué método de consulta/operador de firestore puede ayudarme en esto?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Desea utilizar el operador in https://firebase.google.com/docs/firestore/query-data/queries#in_and_array-contains-any

Si usa angular/fuego, sería algo así como

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

editar: se dio cuenta de que no quería entrar, entonces el operador not-in mismo patrón

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!