title: Querying an array stored in firestore - react native
body: <p>I am not sure what I am doing wrong but I am trying to query my data if my interestdata value is in my firestore database but nothing is being populated. Attached are some screenshots for more context.</p>
  <p><a href="https://i.stack.imgur.com/m88X4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m88X4.png" alt="enter image description here" /></a></p>
  <pre><code>  const queryRef =  firebase.firestore().collection(&quot;users&quot;)
    const classificationFilter = classification ? queryRef.where(&quot;classification&quot;, &quot;==&quot;, classification.name) : queryRef;
    const majorFilter = major ? classificationFilter.where(&quot;major&quot;, &quot;==&quot;, major.name) : classificationFilter;
    const genderFilter = gender ? majorFilter.where(&quot;gender&quot;, &quot;==&quot;, gender.name) : majorFilter;
    const internationalFilter = International ? genderFilter.where(&quot;International&quot;, &quot;==&quot;, International.name) : genderFilter;
    const institutionFilter = institution ? internationalFilter.where(&quot;institution&quot;, &quot;==&quot;, institution.name) : internationalFilter;
    const interestFilter = interest ? institutionFilter.where(&quot;interests&quot;, &quot;array-contains-any&quot;, interestData) : institutionFilter;
  
     firebase
        .firestore()
        .collection(&quot;users&quot;)
        .where(firebase.firestore.FieldPath.documentId(), &quot;not-in&quot;, [
          ...passedUserIds,
          ...swipedUserIds,
          currentUserUid,
        ]) &amp;&amp; interestFilter
    .onSnapshot((snapshot: any) =&gt; {
          setUserData(
            snapshot.docs
              .filter((doc: any) =&gt; doc.id !== currentUserUid)
              .map((doc: any) =&gt; ({
                id: doc.id,
                fullName: doc.data()?.name,
                image: doc.data()?.imageUri,
                interests: doc.data()?.interests ?? [],
                ...doc.data(),
              }))
          );
        });
  </code></pre>