GraphQL access to public project releases

query { 
  repository(owner: "square", name: "okio") {
    name
    releases(first: 10, orderBy: {field:CREATED_AT, direction:DESC}) {
      nodes {
        name
        description
        tagName
        createdAt
        url
        releaseAssets(first:5) {
          nodes {
            name
            size
            downloadUrl
          }
        }
      }
    }
  }
}

I’m expecting to see releases but I get

{
  "data": {
    "repository": {
      "name": "okio",
      "releases": {
        "nodes": []
      }
    }
  }
}

Is this because they are not really releases? Just tags?

Yes, that’s correct. They haven’t created any actual release records. We surface tags in the “Releases” section of the UI because very often people use simple tags as their first stepping stone to full blown releases.