Firebase Realtime Database accept queries with strings in case sensitive manner.
Does this still apply for Firestore?
Yes, queries are still case sensitive.
To support case-insensitive or any other canonicalization you'll need to write a separate field that contains the canonicalized version and query against that. For example
db.collection("users").where("name", "==", "Dan")
db.collection("users").where("name_lowercase", "==", "dan")
Also see my longer answer here: Cloud Firestore Case Insensitive Sorting Using Query
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With