firebase / firebase/firebase-tools-ui

wherein not accounting for null values

Open
#990 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
291
Forks
74
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Using android and trying to use .wherein with a null value just ignores it.
Example:

.whereIn("reservation.cleanBy", listOf(null, firebaseAuth.currentUser!!.uid)
.whereEqualTo("reservation.cleanBy", null) works fine!

**Expected behavior**
The query result should also include the document where the specified value is null

**Smartphone (please complete the following information):**
Emulator API 33

Contributor guide

Open the contributing guide

Research direction

The report names no repository file, test, or entry point. Start by reproducing the Android query with whereIn containing null alongside a non-null user ID, compare it with whereEqualTo(null), and trace the Firebase Emulator Suite query handling. Done means the whereIn result includes documents whose specified value is null.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, typescript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.