Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

A small command-line tool for interacting with GQL APIs

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:"[email protected]").id,firstName,lastName
```

Under the surface, generates a GraphQL query that looks like:

```gql
query {
customer(name:"[email protected]") {
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