Node Js Mongodb Atlas Function Inconsistent Behaviour Between

Node Js Mongodb Atlas Function Inconsistent Behaviour Between