MongoDB – wrong type for field (expireAfterSeconds) long != int This is for MongoDB 4.2 in a Windows Server 2019 environment.