Javascript 如果元素属于数组Firestore

Javascript 如果元素属于数组Firestore,javascript,firebase,google-cloud-firestore,Javascript,Firebase,Google Cloud Firestore,我想从Firestore获取数据,但在where()函数中,我想执行以下操作: firebase.firestore().collection('event') .where('sport', 'is in the', some_filter_array) 我可以这样做吗?使用IN查询,如中所述: 使用IN查询,如中所述: .where('sport', 'in', [a, b, c])

我想从Firestore获取数据,但在
where()
函数中,我想执行以下操作:

firebase.firestore().collection('event')
    .where('sport', 'is in the', some_filter_array)

我可以这样做吗?

使用IN查询,如中所述:


使用IN查询,如中所述:

    .where('sport', 'in', [a, b, c])