How to query firestore with the Dialogflow inline editor to get information

前端 未结 1 1060
时光取名叫无心
时光取名叫无心 2021-01-23 09:23

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\'

1条回答
  •  长情又很酷
    2021-01-23 10:26

    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.

    0 讨论(0)
提交回复
热议问题