Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase admin SDK node - wildcard usage in reference

Is it possible to listen for child_added in the admin SDK while using a wildcard in the ref? In cloud functions, I could use "{random}" but this does not work in Node.js. example:

var refHighscore = db.ref("highscores/classic/alltime/{score}")
like image 880
J. Doe Avatar asked Aug 22 '26 12:08

J. Doe


1 Answers

No. This is a unique feature of Cloud Functions, as a trigger is registered directly with the Realtime Database itself. The Admin SDK functions just like the Client SDK -- no wildcards.

like image 200
Michael Bleigh Avatar answered Aug 24 '26 09:08

Michael Bleigh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!