公告
财富商城
积分规则
提问
发文
2020-04-02 08:57发布
\"骚年 ilove
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
最多设置5个标签!
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
Also see my longer answer here: Cloud Firestore Case Insensitive Sorting Using Query