The default MappingMongoConverter adds a custom type key (\"_class\") to each object in the database. So, if I create a Person:
package my.d
you just need to add the @TypeAlias annotation to the class defintion over changing the type mapper