angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.64k stars 2.2k forks source link

OR search feature request #3339

Open arnotixe opened 1 year ago

arnotixe commented 1 year ago

Feature request for the OR compound search operator. Might be too early, it's in Preview. https://firebase.google.com/docs/firestore/query-data/queries#or_queries

Until now we have been able to chain .where() and they implicitly became "AND-joined" (each .where() further filtering down the data), but an OR() operator would extend the returned data instead.

pseudocode roughly along the lines of above documentation:

return getDocs(      
  query(
    collection(this.firestore, `invite`),       
    or (//                                <--- new joining operator
      where('email', '==', email),
      where('phoneNumber', '==', phone)    
    )  
  );

Version info

Angular: 14.0.5

Firebase: 9.9.0

AngularFire: 7.4.1

google-oss-bot commented 1 year ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

jamesdaniels commented 1 year ago

We need to break, since we're relying on too old a version of typescript to take on the newer version of firebase. We'll have the next major in RC shortly & you'll be able to use the new apis.