You will want to be wary if you are comparing two objectIds in MongoId form as the primarykey(), I dunno why but it never works. I always have to convert to string first then it works just fine.