I am using the inline editor within Dialogflow with the aim of making queries to the database I have created within Firestore. In short, the user requests a list of courses, I\'
You don't show how you're responding to the user with your results, but you'll want to make sure you handle that as part of the then()
clause in a Promise. Since the get()
in the firestore collection returns a Promise, and you are returning it from your function, you need to make sure that the calling function treats it as a Promise, has a then()
clause, and sends back the result as part of something inside this clause.