0

How may i Use 2 where logic in one Firebase Flutter Application

 FirebaseFirestore.instance
                    .collection('task')
                    .where('usergroup', isEqualTo: 'software')
                    .snapshots(),
2
  • .where('usergroup', isEqualTo: 'software','userid',isEqualTo: "ep434334",) i want like this but not working Commented Dec 18, 2021 at 3:59
  • Does this answer your question? Firestore: Multiple conditional where clauses Commented Dec 18, 2021 at 4:13

1 Answer 1

1

You can use multiple where for querying multiple conditions.

You can check the documentation here

FirebaseFirestore.instance.collection('task')
    .where('usergroup', isEqualTo: 'software')
    .where('userid', 'ep434334')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.