MichaelSolati / geofirestore-js

Location-based querying and filtering using Firebase Firestore.

Home Page:https://geofirestore.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perform a query with inequality / not equals

Snowbases opened this issue · comments

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!

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.