Search for code in GitHub using GraphQL (v4 API)

Type: CODE is not supported yet. There is no way you can search the code using graphql right now.

Your understanding is right. Just that you are missing one piece.
The search you are doing is happening against the type: REPOSITORY.
if you replace your search with

search(query: "beef", type: REPOSITORY, first: 10) {

you will get all the repos having beef in their name.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)