Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase Firestore函数onWrite是否支持多个参数?_Firebase_Google Cloud Firestore_Google Cloud Functions_Firebase Cli - Fatal编程技术网

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将进一步研究,并在需要时发布。