Firebase Cloud Functions Triggers with Two varibles

 Although firebase functions document not mentioned about how many varible values can be exhist in firebase onWrite() tirgger , I have used it upto 2 levles without any issue.


 For an exaplen in the blow code , I have consider the change in list under the userId ,,
The value will be wrriten under the varible of user.

 exports.testFunctionName = functions.database.ref('/user-list/{user}/{pushId}').onWrite(( change,context) => {
            const original =  change.after.val();
            var pushId=context.params.pushId;
                var userId=context.params.user;
...

Comments

  1. Casino Player Reviews & Ratings - Dr.MD
    Find unbiased Casino Player 여주 출장안마 Reviews & ratings from all 양산 출장안마 Canada's top Online 경주 출장마사지 Casinos & Games Casino Player Rating, Best Casinos, 나주 출장마사지 Bonus Codes & Promotions. Rating: 2.8 · ‎Review by 광양 출장마사지 Dr.Mcd

    ReplyDelete

Post a Comment

Popular posts from this blog

ENOENT: no such file or directory, rename : node_modules/async

react-quill Integrate quill-image-resize-module