如何访问中间有空格字符的 firestore 文档(如何转义空格字符?)

H W*_*ong 6 javascript firebase typescript google-cloud-functions

我们如何访问中间有空格的文档或集合?

例如:

export const onStore = 
functions.firestore
.document('Stores/Test Store/{nameID}')
.onCreate((snap, context) => {
    return admin.messaging().send(message)
        .then((response) => {
            console.log('Successfully sent message:', response);
        })
        .catch((error) => {
            console.log('Error sending message:', error);
        })
});
Run Code Online (Sandbox Code Playgroud)

我已经尝试过  、%20 和用空格转义 \,但它们都不起作用。将其保留为空间本身将使我在 firebase 部署时返回错误。