matjung / covid

php source code for slave hosting covid based web services
1 stars 0 forks source link

Given Tree ID - list sub trees #4

Open matjung opened 4 years ago

matjung commented 4 years ago
{
  repository(owner: "CSSEGISandData", name: "COVID-19") {
    object(oid: "430da6188c370b1ad6c5310cd4fb79891931e86b") {
      repository {
        id
        name
        resourcePath
        url
      }
      oid
      __typename
      ... on Tree {
        oid
        entries {
          mode
          oid
          name
          type
        }
      }
    }
  }
}
matjung commented 4 years ago

Sample Result

{
  "data": {
    "repository": {
      "object": {
        "repository": {
          "id": "MDEwOlJlcG9zaXRvcnkyMzgzMTY0Mjg=",
          "name": "COVID-19",
          "resourcePath": "/CSSEGISandData/COVID-19",
          "url": "https://github.com/CSSEGISandData/COVID-19"
        },
        "oid": "430da6188c370b1ad6c5310cd4fb79891931e86b",
        "__typename": "Tree",
        "entries": [
          {
            "mode": 33188,
            "oid": "d40dc8e6cf5fdac2f8f07c25a277d8300c12da9c",
            "name": "README.md",
            "type": "blob"
          },
          {
            "mode": 33188,
            "oid": "ace63a094bddac757289ca4b0f1d24570dc6709f",
            "name": "UID_ISO_FIPS_LookUp_Table.csv",
            "type": "blob"
          },
          {
            "mode": 16384,
            "oid": "bb2461dc7e5ef7c0e064523a831f798355f00e66",
            "name": "csse_covid_19_daily_reports",
            "type": "tree"
          },
          {
            "mode": 16384,
            "oid": "40601403e920ac4261e811a565b20ba83c4cfc3e",
            "name": "csse_covid_19_time_series",
            "type": "tree"
          }
        ]
      }
    }
  }
}