Querybase中的多个where子句不起作用
这是我的代码
<script src="https://unpkg.com/querybase@0.6.0"></script>
<script>
const databaseRef = firebase.database().ref().child('people');
const querybaseRef = querybase.ref(databaseRef, ['name', 'age',
'location']);
// Automatically handles composite keys
querybaseRef.push({
name: 'David',
age: 27,
location: 'SF'
});
// Find records by multiple fields
// returns a Firebase Database ref
const queriedDbRef = querybaseRef
.where({
name: 'David',
age: 27
});
// Listen for realtime updates
queriedDbRef.on('value', snap => console.log(snap));
</script>
它给了我这些信息
如果尚未添加此规则,则可以大大提高实时数据库查询的性能:
"people": { ".indexOn": ["querybase~~YWdl", "querybase~~bG9jYXRpb24=", "querybase~~bmFtZQ=="] }