This is my code, however, the Firebase function project is complaining that loadBundle
and namedQuery
methods are missing.
My package.json has the latest versions. How can I resolve this?
"dependencies": {
"firebase-admin": "^12.1.0",
"firebase-functions": "^4.9.0",
"googleapis": "^115.0.0",
"lodash": "^4.17.21",
"node-apple-receipt-verify": "^1.12.1"
},
You cannot call the loadBundle()
nor the namedQuery()
function on a Firestore object because there are no such functions present inside the Firestore class. What I think you're looking for is called bundle() which:
Creates a new BundleBuilder instance to package selected Firestore data into a bundle.
One thing to mention is that those functions are present if you're using Data Bundles in React Native and not when using the Admin SDK.