title: Firebase Cloud Functions: How to push data using wildcards in http requests
body: <p>I'm exploring new Cloud Functions feature in Firebase, so I know how wildcards work in Realtime database triggers, but when I'm trying to add wildcards in http request, it ignores wildcards and pushes new data into the new <strong>{userId}</strong> object.</p>
  
  <p>Basically, I'm trying to make a function, which will take data from all the users in 'today' object and push it into 'yesterday' object (something like statistics or process). For that I'm using <a href="https://github.com/firebase/functions-samples/tree/master/delete-unused-accounts-cron" rel="nofollow noreferrer">this topic</a> based on cron example.</p>
  
  <p>I have started with building simple function triggered by http request, with an idea of pushing some data for all the users (<strong>{userId}</strong> wildcard), but the data is being pushed into new <strong>{userId}</strong> object, ignoring the wildcard.</p>
  
  <pre><code>exports.addEntry = functions.https.onRequest((req, res) =&gt; {
    const value = req.query.addValue;
    admin.database().ref('users/{userId}').push({value}).then(snapshot =&gt; {
    res.redirect(303, snapshot.ref); });
  });
  </code></pre>
  
  <p>Question: how to make this function push the data to all users? </p>