when I use firebase rules '.validate ' to filter data, then creating a chart, but is there a using way to do it?
my code as below:
".validate": "newData.hasChildren(['x', 'y']) && newData.child('x').exists() && newData.child('y').exists()"
to ensure x attribute and y attribute are valid.