Is the id of the non-primary key in mongodb string or objectid

  mongodb, question
{
 _id:ObjectId,
 otherID:String
 }
{
 _id:ObjectId,
 OtherID:ObjectId
 }

What’s the difference?

Please use ObjectId, various operations are more convenient than strings.