could anyone tell me what’s wrong with this code and how to fix it? Any help would be appreciated, thanks. The error is: “null – parsing error: Identifier direcly after number”. Here’s the other code with the error “ChannelId already defined”: Answer In JavaScript objects, string values must be wrapped with quotation marks, you can use “string” or ‘string’. This
Tag: google-cloud-platform
Give permission in a gmail addon
I’m trying to put together a script for Gmail in Google Apps Scripts add-on that will reply to all email on weekends with an out of office message: I keep getting this error however: Exception: The script does not have permission to perform that action. Required permissions: (https://www.googleapis.com/auth/gmail.labels || https://www.googleapis.com/auth/gmail.metadata || https://www.googleapis.com/auth/gmail.readonly || https://www.googleapis.com/auth/gmail.modify || https://mail.google.com/) This happened after I
Is there a way to get all documents in a subcollection (Firestore)
I’m having difficulties querying all documents inside a subcollection in my Firestore database. (I am using Node.js) My goal is to get all the data from every document inside the subcollection named favorites My database structure looks like this. I looked at the documentation at https://firebase.google.com/docs/firestore/query-data/get-data but without any result how to solve the problem. My query looks like this
How to run a background Cloud Function and schedule a change in database?
I’m developing an app using React Native and Firebase Realtime database. I want to do something like this. From the app, I set a time duration and press a button. Then, it writes data to the Firebase. Assume that I set the time duration to 1000000000 ms and press the button. Then, the database looks like this: I want to
Firestore: Multiple conditional where clauses
For example I have dynamic filter for my list of books where I can set specific color, authors and categories. This filter can set multiple colors at once and multiple categories. How can I add “where” conditionally? Answer As you can see in the API docs, the collection() method returns a CollectionReference. CollectionReference extends Query, and Query objects are immutable.
Firestore: Get subcollection of document found with where
I am trying to get the documents inside an subcollection which is part of an document found with the .where function Example: RootColl/ Doc A/ SubColl 1 Doc 1 Doc 2 Doc 3 SubColl 2 Docs Doc A/ SubColl 1 Doc 1 Doc 2 Doc 3 SubColl 2 Docs I want to get all the documents under SubColl 1 from