Hi to all
I have some trouble with golang and mongoDB i'm using the official mongodb driver for go.
What i have to do is manage partial mongo db update casting a map[string]interface{} to a bison.M to perform an update.
I have following collection
https://jsoneditoronline.org/?id=5d1cb75ba2de4626ab2a4628e29b955eThe request body of update post can contains one or more properties of the collection.
How i can cast body request to a valid bison.M to per form the update?
For example if update dto is
https://jsoneditoronline.org/?id=81f6bbd30bab4349964d692fc3b374eejsoneditoronline.orgJSON Editor Online - view, edit and format JSON onlineJSON Editor Online is a web-based tool to view, edit, and format JSON. It shows your data side by side in a clear, editable treeview and in a code editor.
jsoneditoronline.orgJSON Editor Online - view, edit and format JSON onlineJSON Editor Online is a web-based tool to view, edit, and format JSON. It shows your data side by side in a clear, editable treeview and in a code editor.