Firebase Firestore函数onWrite是否支持多个参数?
Firebase Firestore函数onWrite是否支持多个参数?,firebase,google-cloud-firestore,google-cloud-functions,firebase-cli,Firebase,Google Cloud Firestore,Google Cloud Functions,Firebase Cli,#onWriteFirebase Firestore函数-我从网上和几个例子了解到Firestore函数支持路径中的一个变量/参数,例如: functions.firestore .document('tests/{firstId}') .onWrite((change, context) => { ... }) functions.firestore .document('tests/{firstId}/nested/{secondId}') //- note the se
#onWrite
Firebase Firestore函数-我从网上和几个例子了解到Firestore函数支持路径中的一个变量/参数,例如:
functions.firestore
.document('tests/{firstId}')
.onWrite((change, context) => { ... })
functions.firestore
.document('tests/{firstId}/nested/{secondId}') //- note the secondId
.onWrite((change, context) => { ... })
。。。但是如果路径中支持多个参数,我找不到文档或示例,例如:
functions.firestore
.document('tests/{firstId}')
.onWrite((change, context) => { ... })
functions.firestore
.document('tests/{firstId}/nested/{secondId}') //- note the secondId
.onWrite((change, context) => { ... })
在本地Firestore emulator上运行的测试中,此函数不会启动
有人能确认是否支持多个参数吗?它确实支持文档路径中的多个通配符。这本书中有一个例子
若您对emulator有问题,请向提交一份bug报告。谢谢,Doug将进一步研究,并在需要时发布。