Hey @Lucas_Lind,
On first reading the question this appeared to be a query casting issue, but if you’ve already cast objectId
to an ObjectId
then this may not be the case.
Can you enable logging and verify that (a) the query that’s being sent to the server is correct and (b) the correct cluster/database/collection is being targeted? This should make it a lot easier to determine what’s going wrong.