How to get data from wildcard in firebase cloud functions

后端 未结 3 1409
时光说笑
时光说笑 2021-01-05 03:06

Assuming that I trigger events on the following ref(\'/users/{userId}/items/{newItem}\') I want to get a value from inside the wildcard userId

3条回答
  •  孤城傲影
    2021-01-05 03:44

    You can find wildcard values like this

    wildCardValue = context.params.wildCardName
    

提交回复
热议问题