Reputation: 3860
I have mongoId like this :
ObjectId("53056c1e211b6f2e5d8b4567")
I only want
"53056c1e211b6f2e5d8b4567"
I tried toString
but it returns the whole thing as string.
I know I can extract using string operations, but is there a native way to do so ?
Upvotes: 0
Views: 671