I am trying to set the star_info attribute as an object type(Mixed Schema) and setting it\'s default value as an empty object using
star_info
star_info:
If you don't mind empty objects being omitted from the database, but you want them in your JSON, just use obj.toJSON({minimize: false})
obj.toJSON({minimize: false})