https://github.com/gerhalt/igqloo
A small command-line tool for interacting with GQL APIs
https://github.com/gerhalt/igqloo
cli gql graphql python python3
Last synced: 10 months ago
JSON representation
A small command-line tool for interacting with GQL APIs
- Host: GitHub
- URL: https://github.com/gerhalt/igqloo
- Owner: gerhalt
- Created: 2021-10-14T00:35:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-18T23:48:55.000Z (over 4 years ago)
- Last Synced: 2025-08-22T02:43:11.768Z (11 months ago)
- Topics: cli, gql, graphql, python, python3
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# igqloo
A small tool for interacting with GQL APIs
Arguments, mutations, aliases are all supported. Other features, such as
fragments, are left unsupported with the opinion that, when a query becomes
large enough to warrant them, you might be best feeding in a file containing
your query.
```bash
igqloo customer(name:"gerhalt@gmail.com").id,firstName,lastName
```
Under the surface, generates a GraphQL query that looks like:
```gql
query {
customer(name:"gerhalt@gmail.com") {
id, firstName, lastName
}
}
```
Queries are made simple using three key concepts:
1. Dot-notation, with `.` indicating the beginning of a nested query level
2. A comma `,` indicates a field on the same level as the prior field
3. Parenthesis `()` for filters and "quoting" aliases