python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
de-duping items in a mongoose list of populate IDs
I have a mongoose object which contains an array of ObjectIds, being used for population from another table. I want to be able to dedupe these. eg I have
[ '61e34f3293d9361bbb5883c7' ,'61e34f3293d9361...

dcsan
Votes: 0
Answers: 0
Match with toObjectId in mongodb Aggregate
Really stuck with something that to me seems like it should be easy
I want to essentially do is convert the string of an objectId to an objectId and match on that, but I can't figure out how to do it....
Neville Bamshoot
Votes: 0
Answers: 1
generate mongodb's ObjectId value from data in the doc
just to check if it is possible and if it worth the trouble:
i'm using python 3.9.5, with mongoengine as ORM.
lets say, i have data to to save in a collection:
{
"value": string,
&qu...

drizzt13
Votes: 0
Answers: 1