Using GraphQL client to get the RAW URL for a file

I am trying to use the GraphQL API to build a report where I’d like to add a link to the RAW URL for some binary files (non-text) on the repo.

Using the object Blob type on my query, I can get the file name, type, even content for text files (non-text files have the text field empty).

Is it possible to get the RAW URL from the file as it is using REST?

Hey @luigibertaco :wave:

Just coming back to this as I didn’t want your post to languish without an answer. For the blob object, there is a commitUrl field that you can leverage:

…which you likely have found already, but it is defined as:

The HTTP URL for this Git object.

…which should be exactly what you’re after. :crossed_fingers: