Shell and server versions do not match

Thank you, Maxime !

  1. Yes

  2. It works and I get this response.

    db version v4.4.0
    Build Info: {
      “version”: “4.4.0”,
      “gitVersion”: “563487e100c4215e2dce98d0af2a6a5a2d67c5cf”,
      “modules”: [
      “enterprise”
      ],
      “allocator”: “system”,
      “environment”: {
      “distarch”: “x86_64”,
      “target_arch”: “x86_64”
      }
    }
  1. I tried and got this error.
{
    “ok” : 0,
    “errmsg” : "Invalid command argument. Expected ‘4.2’ or ‘4.0’, found 4.4 in: { setFeatureCompatibilityVersion: “4.4”, lsid: { id: UUID(“39820014-601d-4a26-a816-51adac01dc04”) }, $db: “admin” }. See https://docs.mongodb.com/manual/release-notes/4.2-compatibility/#feature-compatibility.",
    “code” : 2,
    “codeName” : “BadValue”
}