我不知道如何在Firestore中实现这种数据结构。
我有这个结构:
Firestore-root
|
--- liturgia (collection)
| |
| --- lh (documents)
| |
| --- oficio (collection)
| |
| --- 03070101 (documents)
| |
| --- himno: "Today himno for today oficio"
| |
| --- read: "Today read for today oficio"
|
| --- 03070102 (documents)
| |
| --- himno: "Today himno for today oficio"
| |
| --- read: "Today read for today oficio"
|
| --- 09070325 (documents)
| |
| --- himno: "Today himno for today oficio"
| |
| --- read: "Today read for today oficio"
|
| --- laudes (collection)
| |
| --- 03070101 (documents)
| |
| --- himno: "Today himno for today laudes"
| |
| --- read: "Today read for today laudes"
在具有固定内容的文档中,此内容永远不会更改,我需要根据日期使用该内容。oficiolaudes
例如:
我有任何日期,在这个日期,需要一个完整的内容。例如,当我需要显示(或)的今天内容时:oficio
laudes
因为我将需要的内容2019-03-25
09070325
因为我将需要的内容2019-03-26
03070102
...
因为我将需要的内容2020-03-25
09070325
因为我将需要的内容2020-03-26
03070103
...
因为我将需要的内容2021-03-25
03070101
我想到了一个结构,根据日期将固定内容联系起来,但我不知道该怎么做。
在我的应用程序中,将采用当前日期,并且基于此数据,必须找到 的固定内容 , for 等。oficio
laudes
例如,in 和 in 是需要的内容,但 in 是需要的内容:2019-03-25
2020-03-25
09070325
2021-03-25
03070101
汪汪一只猫
相关分类