Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to query complex list #574

Unanswered
carvalho2707 asked this question in Q&A
Discussion options

With firestore how can query a collection to find if a property( list of objects) has one where a property matches a given string?

You must be logged in to vote

Replies: 1 comment

Comment options

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()
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #559 on July 25, 2024 11:59.

AltStyle によって変換されたページ (->オリジナル) /