GraphQL API returning a specific file's text at a commit #24465
-
Hi, I am running into a problem getting a specific text file’s contents at a certain commit using GraphQL
But I cannot figure out how to only get the file I am interested in. Is this possible? And if so, what would the query look like? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @benjaminwinokur! I believe this can be done by mashing up your first and second query by using the OID and the path to the file, something like this:
Using this I was able to get the contents of the README at any commit, let me know if that works for you! |
Beta Was this translation helpful? Give feedback.
Hi @benjaminwinokur!
I believe this can be done by mashing up your first and second query by using the OID and the path to the file, something like this:
Using this I was able to get the contents of the README at any commit, let me know if that works for you!