com.mongodb.MongoCommandException: Command failed with error 72 (InvalidOptions): 'The field 'expireAfterSeconds' is not a valid collection option. Options: { capped: false, expireAfterSeconds: 315360000, timeseries: { timeField: "timestamp", metaField: "metadata", granularity: "minutes" } }' on server %mongohostport%. The full response is {"ok": 0.0, "errmsg": "The field 'expireAfterSeconds' is not a valid collection option. Options: { capped: false, expireAfterSeconds: 315360000, timeseries: { timeField: \"timestamp\", metaField: \"metadata\", granularity: \"minutes\" } }", "code": 72, "codeName": "InvalidOptions"}
{ "acknowledged": true, "insertedId": <ObjectID> }
{ "timestamp": {"$date": {"$numberLong": "1662681600000"}} }