gpt4 book ai didi

Append binary data in MongoDB(在MongoDB中附加二进制数据)

转载 作者:bug小助手 更新时间:2023-10-22 16:57:00 32 4
gpt4 key购买 nike



given the following MongoDB document:

给定以下MongoDB文档:


{
"d" : [
{
"h" : [ ]
},
{
"h" : [
BinData(0,"..."),
BinData(0,"...")
]
}]
}

I want to transform this data that the "d" property contains only 1 BinData that holds the concatenation of the current model.

我想转换这个数据,“d”属性只包含1个BinData,它保存了当前模型的连接。


{
"d" : BinData(0,"<concatenation of the above>")
}

Can somebody help me, how to do that?

有人能帮我吗,怎么做?


btw: I would like to avoid client side JS code due to performance consideration -- if possible

btw:出于性能考虑,我希望避免客户端JS代码——如果可能的话


更多回答

didnt find a way to extract the value mongoplayground.net/p/y1DobZPxYFX maybe if u use $function?

如果你使用$函数,可能没有找到提取mongoplayground.net/p/y1DobZPxYFX值的方法?

优秀答案推荐
更多回答

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com