I am using the firebase module in nuxt.js.
I wanted to extract data in the store that had the ID of artistIds
in the target table, so I created the code below, but this.$fire.firestore.FieldPath
became undefined
and it didn't work.
constarQs = wait this.$fire.firestore
.collection('artists')
.where(this.$fire.firestore.FieldPath.ducmentId(), 'in', artistIds)
.get()
this.$fire.firestore
is not undefined
, so I was wondering if I could get it, but please let me know if there are any other alternatives.
Applicable Documents
https://firebase.google.com/docs/reference/unity/class/firebase/firestore/field-path?hl=ja
referenced link
https://qiita.com/xerroxcopy/items/c08bf7068c4b602b02d1
This.$fireModule.firestore.FieldPath.documentId()
.
© 2024 OneMinuteCode. All rights reserved.