Help with data variables formula

Hello Everyone!

I’m trying to see if a field called “exam_id” in “My_question” collection in firebase, matches with a specific value in the back-end. For that, i use the following data variables formula:

When i used “data.my_question[0].exam_id”, it returns only the first document in the “My_question” collection, what i really wanted is that the formula looks for every document in “My_question” collection looking for the value that i want. How can i do that?

Thanks!

Use IS_IN_ARRAY_BY_KEY() to check if data exists in your list of documents.
I don’t think you need to use MAP() yet, so let’s see with the first suggestion.

Thanks! The formula works perfect for what I needed

1 Like