Let's say my Firebase collection looks like:
{
max:5
things:{}
}
How would I use the value of max
in my security rules to limit the number of things
?
{
rules: {
things: {
.validate: newData.val().length <= max
}
}
}