how do I make this query change depending on a condition
let query = (ref: CollectionReference)=>{ return ref.where("dateOrd", ">=&q