Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 1

Enterprise accounts schema preview always included in introspection queries

It seems there's currently (as of this post) a problem where the default introspection query for GitHub GraphQL v4 API includes the Enterprise accounts schema preview, even when it's not asked for.
 
Consider:
 
$ curl -s -H "Authorization: bearer $GITHUB_TOKEN" https://api.github.com/graphql > default.json
$ curl -s -H "Authorization: bearer $GITHUB_TOKEN" -H "Accept: application/vnd.github.enterprise-accounts-preview+json" https://api.github.com/graphql > with_enterprise_preview.json
$ diff ./default.json ./with_enterprise_preview.json
$ echo $?
0
 
Hope this is helpful to you.