In firestore database, there is a field for location, such as :
{
...
"location" : "London, England",
...
}
I want to get this for the search term : London/ london/ England/ england
So far I've tried this :
Firestore.instance
.collectionGroup("posts")
.orderBy(location)
.where(location,
isGreaterThanOrEqualTo: widget.location)
.where(location,
isLessThanOrEqualTo: widget.location + "z")
How to solve this?