Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

comparing mongoose ids and strings

// use .equals()

first._id.equals(another._id)
 
PREVIOUS NEXT
Tagged: #comparing #mongoose #ids #strings
ADD COMMENT
Topic
Name
1+6 =