Issue
Is there any way to apply OR operation in firestore queries like:
if (name == "Jhon" || lastname == "James") { then do this }
Solution
As of Firebase Web SDK Version 9.18.0, OR
queries are now supported.
v9.18.0 Release notes: https://firebase.google.com/support/release-notes/js#9.18.0
Added support for disjunctions in OR queries. See Github PR #7053.
OR queries
Documentation: https://firebase.google.com/docs/firestore/query-data/queries#or_queries
Answered By - Johnny Oshika
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.