Why does an array field in a Go struct default to null when inserted into mongoDB database?
So I have ran into some unexpected behavior when inserting a model into mongoDB. When I send an empty body via Postman to my server and insert it into my database, the returned result to Postman had name and number…