问题
According to the firestore documentation (make sure to select Swift for the code examples), Firestore iOS SDK allows OR queries. There is no OR operator, but the query syntax
ref.whereField("X", in: ["Y", "Z"])
should fulfil the same purpose. However, although I'm using the latest version of Firestore for iOS (1.2.1) and FirebaseCore (5.4.1) this syntax does not seem to be supported.
What am I doing wrong?
回答1:
The whereField(_:in:) query operator was introduced in version 6.12 of the Firebase iOS SDK. For this type of information, always check the release notes.
来源:https://stackoverflow.com/questions/58990674/firestore-ios-or-query-wherefieldx-in-y-z