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