My graphql is suddenly failing

During one of my actions I used to get packages in my repo with something like (I left out the exact query for brevity):

query { 
  repository(owner:"ModelingValueGroup", name:"buildTools") {
    registryPackages
  }
}

but now this code suddenly fails with

Field 'registryPackages' doesn't exist on type 'Repository'

the API docs say it exists: https://developer.github.com/v4/object/repository/

What happened?

Self-answer:
I guess some renaming was done in the API recently: registryPackages seems to be packages now.
For more details see How to list packages and versions in github package registry?

2 Likes

Thanks for coming back to share your solution @tombrus, it’ll help someone!