My structure database (database product):
{
...
data: {
value_a: 15.2,
value_b: 7.1
}
},
{
...
data: {
value_a: 14.1
value_b: 2.5
}
},
{
...
data: {
value_a: 16.7
value_b: 5.2
}
}
my request a) I would like to return a list of products if value_a is between 14 and 15 b) I would like to return a list product if value_a is between 14 and 15 and value_b is between 2 and 5.
I check the operator 'in' but isn't work for the (a).
firestore().collection('products')
.where("data.value_a", "in", [14, 15])