type is a mongoose keyword