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") {

but now this code suddenly fails with

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

the API docs say it exists:

What happened?

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?


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