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 ?