How can I define a security rule that:
tipo
is true
newData
Data structure:
{
"receitas" : {
"-L7bAaMB-vaJhri6r-lg" : {
"imagem" : "default",
"ingrediente" : [ "teste" ],
"nome" : "teste",
"preparo" : "teste",
"tipo" : false,
"usuario": "-L7WxcAHr8LkfJAiI8ku"
},
"-L7bAqvMu8uOoY6nX5Tx" : {
"imagem" : "example.png",
"ingrediente" : [ "teste2" ],
"nome" : "teste2",
"preparo" : "teste2",
"tipo" : true,
"usuario": "-L7WxcAHr8LkfJAiI8ku"
}
},
"usuarios" : {
"-L7WxcAHr8LkfJAiI8ku" : {
"senha" : "123456789",
"usuario" : "guilherme"
},
"-L7bAk3EcsoOQapV9zsb" : {
"senha" : "123456789",
"usuario" : "patricia"
}
}
}