How to get contents of the files with a specific name in a given repository?

I’m trying to fetch the contents of all the files with the name _config.jsonnet in this repository (https://github.com/rakam-io/segment-recipe).

I tried the following query:

query GetFilesQuery($branch: GitObjectID, $query: String!) {
  search(first: 1, type: REPOSITORY, query: $query) {
    edges {
      node {
        ... on Repository {
          object(expression: "master:", oid: $branch) {
            ... on Tree {
              entries {
                name
                object {
                  ... on Blob {
                    text
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

with the parameters with no luck:

{"branch": null, "query": "repo:rakam-io/segment-recipe extension:jsonnet filename:_config"}

Is there anything that I’m missing or the API doesn’t support it>

The GraphQL search connection currently doesn’t support code results, only repository, issue, and user results. For now, you’ll have to use the v3 API to search for code.

I hope that helps!

OK j’essaie pour voir le résultat…