Swift Firestore Search for users
问题 I've had already implemented a function to search for users using the FirebaseDatabase like that: REF_USERS.queryOrdered(byChild: "username_lowercase").queryEnding(atValue: text+"\u{f8ff}").queryLimited(toFirst: 25).queryStarting(atValue: text).observeSingleEvent(of: .value, with: { (snapshot) in snapshot.children.forEach( { (s) in let child = s as! DataSnapshot if let dict = child.value as? [String: Any] { let user = UserInfo.createUser(dict: dict, key: child.key) if user.id! !=