Schpouet'S
BuildShip2y ago
8 replies
Schpouet'

Firestore Collection Query with multiple filters : Value for argument "value" is not a valid ...

I would like to filter collection with multiple filters 😄

"Value for argument "value" is not a valid query constraint. Cannot use "undefined" as a Firestore value. If you want to ignore undefined values, enable
ignoreUndefinedProperties
."
image.png
image.png
image.png
Solution
Hi @Link, the
object validation
node's result here will be false (you can confirm by clicking the green arrow icon). As in
Body
you are giving an Object but it only accepts and validates object. Due to which in the second node
Firestore Collection Query
, the value you are referencing from body is breaking (
invalid
),

To fix this, either pass the body as a valid object.

{
  "type": "House",
  "hidden": false
}


Or remove the object validation node, and reference it in the filter's value as
(x)Body[0].type
note: array's are always accessed by their index through dot notation.
Was this page helpful?