Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

269
Visualizações
explanation of firebase docs about query(query, queryConstraints)?

I was looking about more details about the query function in firestore in docs reference of firestore and I found this pseudo syntax :

query(query, queryConstraints)

but in all firestore examples about this function they used in the first parameter a collection reference not query

form firestore examples :

// Create a reference to the cities collection
import { collection, query, where } from "firebase/firestore";
const citiesRef = collection(db, "cities");

// Create a query against the collection.
const q = query(citiesRef, where("state", "==", "CA"));

Is it the same function or this is another Signature for it ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

A collection reference is a subclass of a query, so wherever the API expects a Query you can also pass a CollectionReference. So you can build a new query by passing a CollectionReference to the query function, or add conditions to an existing query by passing a Query to it.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda