I need to retrieve the first 100 results from my Firebase data, followed by the next 100, and so on. Despite trying multiple methods, I have not been successful.
Method 1
ref.child('products').orderByChild('domain').startAt(0).endAt(100).once('value').then(function(snapshot) {});
Method 2
ref.child('products').orderByChild('domain').startAt(0).limitToFirst(100).once('value').then(function(snapshot) {});
Method 3
ref.child('products').startAt(0).endAt(100).once('value').then(function(snapshot) {});
Each time the snapshot returned is null. Is there a way in Firebase to achieve the desired range of data?