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

Enterprise accounts schema preview always included in introspection queries

Solved! Go to Solution.
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.
2 Replies
Solution
Community Manager
Message 2 of 3

Re: Enterprise accounts schema preview always included in introspection queries

Thanks for letting us know! I've passed this along to the correct team for investigation. I can't promise anything or give an ETA, but it's in the right hands.

 

Thanks again 👍

Copilot Lvl 3
Message 3 of 3

Re: Enterprise accounts schema preview always included in introspection queries

The Enterprise accounts schema preview has been merged into the stable API by now, so this is resolved.