2

I'm trying to make a sentence like this:

return this.db.collection('places', ref => ref.where("CodPais", "!=", pais)).valueChanges();

but neither != nor <> are valid. Is it possible to do it in some way?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807

1 Answers1

0

The where() method takes three parameters: a field to filter on, a comparison operation, and a value. The comparison can be <, <=, ==, >, or >=. For iOS, Android, and Java, the comparison operator is explicitly named in the method.

Click here to read the Firebase documentation about this.

Stan van Heumen
  • 2,236
  • 2
  • 11
  • 20