Error in Collection.ReplaceOne method
Posted by: Jesús Trujillo
Date: November 23, 2020 07:23AM

I have a DbDoc with the following structure:
{
͏͏ property1: value1,
 property2: value2.
 array3:
  [
   {
    property11: value11,
    property12: value12
   },
   {
    property11: value11,
    propertu12: value12
   }
  ]
}

When I add this DbDoc using Collection.Add(DbDoc) method, it works.
But when I try to update the database document using Collection.ReplaceOne(id,DbDoc) method, I get the following exception:

System.NotSupportedException
HResult=0x80131515
Mensaje = Value of type System.Collections.Generic.Dictionary`2[System.String,System.Object][] is not currently supported.

Can anybody tell me what am I doing wrong?

Options: ReplyQuote


Subject
Written By
Posted
Error in Collection.ReplaceOne method
November 23, 2020 07:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.