Get binary blob data


#1

Is there a way to retrieve binary data with the graphql API? The Blob documentation states that the text property will be null if the data is binary. For reference I’m doing a query similar to this:

query GetLogo($owner:String!, $name: String!) { 
  repository(owner: $owner, name: $name) {
    gif: object(expression: "v1.6.0:docs/logo.gif") {
      ... on Blob {
        text
        isBinary
      }
    }
  }
}

With that query I’m getting back isBinary true and text null.