-
-
Notifications
You must be signed in to change notification settings - Fork 180
How to query complex list #574
Unanswered
carvalho2707
asked this question in
Q&A
-
With firestore how can query a collection to find if a property( list of objects) has one where a property matches a given string?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
The library supports all queries documented in here, with the same kind of restrictions. Syntax is a bit different to make it more kotlin like. From your description it's not entirely clear what you'd want to query, but generally its:
val collectionReference: CollectionReference = // Get a reference to your collection collectionReference.where { NAME_OF_PROPERTY equalTo DESIRED_VALUE }.get()
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment