| name | graphql-queries |
| description | Constructing GraphQL query client configurations and mutation payloads in Python. |
| allowed-tools | Read Write Edit Bash |
| license | MIT license |
| metadata | {"skill-author":"Lord1Egypt"} |
Graphql Queries
Overview
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data.
When to Use This Skill
Use to interface with APIs that expose GraphQL endpoints (e.g., GitHub GraphQL API v4).
Quick Start (with runnable code examples)
import requests
url = 'https://api.github.com/graphql'
headers = {'Authorization': 'token ghp_...'}
query = """
query {
viewer {
login
bio
}
}
"""
r = requests.post(url, json={'query': query}, headers=headers)
print(r.json())
Advanced Usage
Handle GraphQL input variables, define fragment structures, configure mutations, and parse paginated cursor queries.
Key References
Dependencies