Schpouet'
Schpouet'6mo ago

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."
No description
No description
No description
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. ```{...
Jump to solution
5 Replies
Solution
Gaurav Chadha
Gaurav Chadha6mo ago
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
}
{
"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.
Schpouet'
Schpouet'OP6mo ago
thank's so much, it working now It working for the first solution but the second doesn't work by my fault :x
Schpouet'
Schpouet'OP6mo ago
No description
Schpouet'
Schpouet'OP6mo ago
No description
Gaurav Chadha
Gaurav Chadha6mo ago
Yea, it will work with this too if you remove [0]