earliestRestrictedContributionDate field of ContributionsCollection object is not working

The earliestRestrictedContributionDate field of ContributionsCollection object is not working, even if user has enabled private contribution counts.

as my case:

when i run the query:

I get null, this field is deprecated?

This field is working as intended. If I execute this query:

query getFirstContribution {
  user(login: "lee-dohm") {
    login
    contributionsCollection {
      startedAt
      endedAt
      contributionYears
      earliestRestrictedContributionDate
      hasAnyRestrictedContributions
      hasAnyContributions
      restrictedContributionsCount
    }
  }
}

Then I receive:

{
  "data": {
    "user": {
      "login": "lee-dohm",
      "contributionsCollection": {
        "startedAt": "2018-05-20T07:00:00Z",
        "endedAt": "2019-05-24T06:59:59Z",
        "contributionYears": [
          2019,
          2018,
          2017,
          2016,
          2015,
          2014,
          2013,
          2012,
          2011
        ],
        "earliestRestrictedContributionDate": null,
        "hasAnyRestrictedContributions": false,
        "hasAnyContributions": true,
        "restrictedContributionsCount": 0
      }
    }
  }
}

But if I execute the same query but against your user ID then I receive:

{
  "data": {
    "user": {
      "login": "fanny",
      "contributionsCollection": {
        "startedAt": "2018-05-20T07:00:00Z",
        "endedAt": "2019-05-24T06:59:59Z",
        "contributionYears": [
          2019,
          2018,
          2017,
          2016,
          2015
        ],
        "earliestRestrictedContributionDate": "2018-05-25",
        "hasAnyRestrictedContributions": true,
        "hasAnyContributions": true,
        "restrictedContributionsCount": 218
      }
    }
  }
}

The reverse would be true if you executed the two queries. This is the case because your own contributions are not restricted  for you , but they are for others. (This is made a bit more clear in the documentation for restrictedContributionsCount.)

I hope that helps!