Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Filter.or over a missing field breaks the whole query silently

Abierto
#2,952 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@dconeybe ya está trabajando en esto.

Desde el 4/11/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

api: firestore
[REQUIRED] Step 2: Describe your environment

Live.
It works in the emulator.

[REQUIRED] Step 3: Describe the problem
Steps to reproduce:

If one or more of the filters inside a Filter.or queries a non-existent property, then the whole Filter.or returns false, returning no results, even if the other filters (e.g. Age in the example below) do match.
No errors or warnings are raised, the query "fails" silently.

Relevant Code:
	let snap = await firestore.collection('MyThing').where(
		Filter.or(
			Filter.where('age', '>=', 18),
			Filter.where('nonExistentProperty', '>=', 123),
		)
	).get()

I get the limitations on querying non-existent fields, but the whole thing shouldn't fail silently.

Either the other filters should still work, or there should be an error raised.

This doesn't occurr on the emulator, so was only a prod issue that it just took me several hours to track down.

At least make the emulator mirror live!

Lenguaje dominante
TypeScript
Estrellas
1.7k
Forks
419
Merge medio
4 d 20 h
PR fusionados (30 d)
16

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de firebase/firebase-admin-node

Todos los issues de firebase/firebase-admin-node

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.