我有以下收藏
{
"_id" : ObjectId("57315ba4846dd82425ca2408"),
"myarray" : [
{
userId : ObjectId("570ca5e48dbe673802c2d035"),
point : 5
},
{
userId : ObjectId("613ca5e48dbe673802c2d521"),
point : 2
},
]}
,我想在C#中向此数组添加一个新元素,请帮助我尝试通过$ push进行操作,但始终会出现此错误。谢谢
MongoDB.Driver.AddToSetUpdateDefinition<TDocument, TItem>.Render(IBsonSerializer<TDocument> documentSerializer, IBsonSerializerRegistry serializerRegistry)`enter code here`