Szabolcs Hetei-Bakó
Szabolcs Hetei-Bakó
@pedrobrun Try this: ` $match: { _id: { $oid: id } }` Hope it helps. :)
> @heteibako , @Evilscaught , @Bricks666 , @QasimRRizvi , @theguywhocodes96 , what about, if i want to use $in, not single id > > `{ '_id': { $oid: '669f6d9148b7b4ef0faf1412' }...
@Evilscaught Interesting. The code above is from a project that I was working on, and I had not needed to wrap the id in ObjectId. But good to know that...
@behnammodi I had the same issue. If you have typescript v5 installed downgrade it to 3.9.7.