0

I need to build a query where the field value is different from a string value.

I looked in the documentation and couldn't understand how to make a query where the value is different.

With angularfirestore I can't make an appointment as follows:

    this.db.collection('schedules').doc(id)
        .collection('values', ref => 
        ref.where('status', '!==', 'cancel');

I need to get all records whose status is different from cancel.

robsiemb
  • 6,157
  • 7
  • 32
  • 46
  • Does this answer your question? [Firestore: how to perform a query with inequality / not equals](https://stackoverflow.com/questions/47251919/firestore-how-to-perform-a-query-with-inequality-not-equals) – robsiemb Nov 07 '19 at 21:02

1 Answers1

0

look a documentation in oficial library; https://github.com/angular/angularfire/blob/master/docs/firestore/querying-collections.md

Basically you have to follow this example:

db.collection ('items', ref => ref.where ('size', '==', 'large'))