The firebase.firestore.fieldPath is undefined in the firebase module of nuxt.js.

Asked 2 years ago, Updated 2 years ago, 326 views

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

javascript firebase nuxt.js

2022-09-30 22:00

1 Answers

This.$fireModule.firestore.FieldPath.documentId().


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.