Is it possible to utilize a variable (page
) in the limit parameter within Firebase Firestore while using Vue?
export default {
data() {
return {
page: 1,
}
},
methods: {
},
firestore: {
Words: db.collection("Words").where("incomplete", "==", true).limit(this.page)
},
}
Unfortunately, this approach is not successful as it results in the following error:
Cannot read property 'page' of undefined
I've attempted using firebase.page
and simply page
, but I'm unable to figure out how to properly incorporate the variable in this manner. Any suggestions on how to achieve this?