MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.
https://geofirestore.com
MIT License
505 stars 58 forks source link

Perform a query with inequality / not equals #202

Closed Snowbases closed 3 years ago

Snowbases commented 3 years ago

I wonder if we can add '!=' and 'not-in' inside WhereFilterOp. because it said that Firebase release notes suggest there are now not-in and != queries. (Proper documentation is now available.) https://stackoverflow.com/questions/47251919/firestore-how-to-perform-a-query-with-inequality-not-equals

Is there any way to add this inequality?

export type WhereFilterOp =
    | '<'
    | '<='
    | '=='
    | '!='
    | '>='
    | '>'
    | 'array-contains'
    | 'in'
    | 'array-contains-any'
    | 'not-in';

Currently, geofirestore only supports this: image

Great tool anyway!

MichaelSolati commented 3 years ago

Hey @SnowBases I updated the core library to use the proper inequalities (as well as this library to use the new core). Update to v4.4.1 and you should be all set.