You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however, when this code is ran, nothing in the database is updated on the model, is there something I am missing ? I also could not find any documentation on how to use this function other than that it can be used on an IDocumentBase
Regards Duck
The text was updated successfully, but these errors were encountered:
As long as I can remember the Update method is not that generic as it should be.. you can either pass a type byte[] where the main content has to be wrapped in the name of a collection (failed and static by a previous design) OR it tries to cast a type of map[string]interface{}. Mainly bson.M is only an "alias" for map[string]interface{}, but mongodm wouldn`t detect it.. Can you try the following?
I am trying to update a defined model with the following piece of code
however, when this code is ran, nothing in the database is updated on the model, is there something I am missing ? I also could not find any documentation on how to use this function other than that it can be used on an
IDocumentBase
Regards Duck
The text was updated successfully, but these errors were encountered: