I'm trying to get the first 100 results from my Firebase data, then the next 100, then the next 100 etc. I've tried multiple ways.
Version 1
ref.child('products').orderByChild('domain').startAt(0).endAt(100).once('value').then(function(snapshot) {});
Version 2
ref.child('products').orderByChild('domain').startAt(0).limitToFirst(100).once('value').then(function(snapshot) {});
Version 3
ref.child('products').startAt(0).endAt(100).once('value').then(function(snapshot) {});
Every time the snapshot returned is null. Is there anyway in Firebase of getting the range of data I'm after?