{
_id:ObjectId,
otherID:String
}
{
_id:ObjectId,
OtherID:ObjectId
}
What’s the difference?
Please use ObjectId, various operations are more convenient than strings.
{
_id:ObjectId,
otherID:String
}
{
_id:ObjectId,
OtherID:ObjectId
}
What’s the difference?
Please use ObjectId, various operations are more convenient than strings.