I'm trying to use a wildcard in a cloud function with firestore like this:
exports.function_name= functions.https.onRequest((req, res) => {
return admin.firestore().collection('users/messages/{messageCollectionId}')
but it does not work. It works if I use an actual id, instead of the wildcard. Any help will be much appreciated.