I've been searching for this one for a while but have not found a reason why this is the way it is.
Basically this returns an array of documents in the collection.
this.db.collection('people', ref => {
return ref.orderBy(name, 'asc')
.startAfter(null)
.limit(10)
})...
This returns an empty array.
this.db.collection('people', ref => {
return ref.orderBy(name, 'desc')
.startAfter(null)
.limit(10)
})...
The only difference is orderBy is set to 'desc'. Can someone please explain why this happens and a way around it? Thanks in advance!