You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,22 +36,27 @@ The main features of GQL are:
36
36
37
37
* Execute GraphQL queries using [different protocols](https://gql.readthedocs.io/en/latest/transports/index.html) (http, websockets, ...)
38
38
* Possibility to [validate the queries locally](https://gql.readthedocs.io/en/latest/usage/validation.html) using a GraphQL schema provided locally or fetched from the backend using an instrospection query
39
-
* Supports GraphQL queries, mutations and subscriptions
39
+
* Supports GraphQL queries, mutations and [subscriptions](https://gql.readthedocs.io/en/latest/usage/subscriptions.html)
40
40
* Supports [sync or async usage](https://gql.readthedocs.io/en/latest/async/index.html), [allowing concurrent requests](https://gql.readthedocs.io/en/latest/advanced/async_advanced_usage.html#async-advanced-usage)
*[gql-cli script](https://gql.readthedocs.io/en/latest/gql-cli/intro.html) to execute GraphQL queries from the command line
43
+
*[DSL module](https://gql.readthedocs.io/en/latest/advanced/dsl_module.html) to compose GraphQL queries dynamically
42
44
43
45
## Installation
44
46
45
47
> **WARNING**: Please note that the following documentation describes the current version which is currently only available as a pre-release and needs to be installed with
46
48
47
-
$ pip install --pre gql
49
+
$ pip install --pre gql[all]
50
+
51
+
> **NOTE**: See also [the documentation](https://gql.readthedocs.io/en/latest/intro.html#less-dependencies) to install GQL with less extra dependencies
48
52
49
53
## Usage
50
54
51
55
### Basic usage
52
56
53
57
```python
54
-
from gql import gql, Client, AIOHTTPTransport
58
+
from gql import gql, Client
59
+
from gql.transport.aiohttp import AIOHTTPTransport
55
60
56
61
# Select your transport with a defined url endpoint
57
62
transport = AIOHTTPTransport(url="https://countries.trevorblades.com/")
0 commit comments