Skip to content

Commit d895c15

Browse files
authored
📝 update readme
1 parent b497b93 commit d895c15

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,17 @@ async for issue in github.paginate(
132132
issue: Issue
133133
print(issue.number)
134134
```
135+
136+
### Call GraphQL API
137+
138+
Simple sync call:
139+
140+
```python
141+
data: Dict[str, Any] = github.graphql(query, variables={"foo": "bar"})
142+
```
143+
144+
Simple async call:
145+
146+
```python
147+
data: Dict[str, Any] = github.async_graphql(query, variables={"foo": "bar"})
148+
```

0 commit comments

Comments
 (0)