这是我的文档的样子。
{
ID: "XYZ",
messages: [
{
ID: "AAA",
text: "this is a message"
},
{
ID: "BBB",
text: "this is a message"
},
{
ID: "CCC",
text: "this is a message"
},
{
ID: "DDD",
text: "this is a message"
},
{
ID: "EEE",
text: "this is a message"
},
{
ID: "FFF",
text: "this is a message"
},
{
ID: "GGG",
text: "this is a message"
}
]
}
我想汇总和获取消息,例如从CCC
到FFF
{
ID: "XYZ",
messages: [
{
ID: "CCC",
text: "this is a message"
},
{
ID: "DDD",
text: "this is a message"
},
{
ID: "EEE",
text: "this is a message"
},
{
ID: "FFF",
text: "this is a message"
}
]
}
那么这怎么可能呢?