googleapis / python-firestore

Apache License 2.0
219 stars 75 forks source link

feat: add IS_NOT_NULL operator to filters #971

Open mgraczyk opened 2 months ago

mgraczyk commented 2 months ago

This allows filters like x.where("field", "!=", None) to work, matching the javascript implementation.

Also adds a test.

Fixes #970

mgraczyk commented 2 months ago

In addition to the unit test, I tested this against my production firestore database and it returns the expected results.

mgraczyk commented 1 month ago

Hi @daniel-sanche, would you mind taking a look or running the workflows? Should be a nice addition and bring the python sdk closer to feature parity with the Node sdk.

vazome commented 14 hours ago

+1, I thought I'm tripping since I could do that in the console, but it's just GUI having more features than Python SDK, hehe.. heeeeeeee... after 4 years https://firebase.google.com/support/release-notes/js#version_7210_-_september_17_2020