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

GraphQL Examples

Solved! Go to Solution.

I'm new to GraphQL and finding it hard to write the queries and mutations without the proper examples and documentation. Let's keep adding the examples

2 Replies
Copilot Lvl 2
Message 2 of 3

Re: GraphQL Examples

Any examples for graphQL createBranchProtectionRule ??

Pilot Lvl 1
Message 3 of 3

Re: GraphQL Examples

@pthrinathraj You can use graphiql explorer to explore more about GitHub V4.


See the below example to create a branch protection rule


Screen Shot 2020-03-10 at 6 48 43 PM.png


You can check the output in the settings tab and clicking branches options in your repo.


Screen Shot 2020-03-10 at 6.49.30 PM.png