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
[](https://gitter.im/juniper-graphql/graphql-client)
7
6
8
7
A typed GraphQL client library for Rust.
9
8
@@ -19,7 +18,7 @@ A typed GraphQL client library for Rust.
19
18
- Supports multiple operations per query document.
20
19
- Supports setting GraphQL fields as deprecated and having the Rust compiler check
21
20
their use.
22
-
-[web client](./graphql_client_web) for boilerplate-free API calls from browsers.
21
+
-Optional reqwest-based client for boilerplate-free API calls from browsers.
23
22
24
23
## Getting started
25
24
@@ -84,6 +83,15 @@ A typed GraphQL client library for Rust.
84
83
85
84
[A complete example using the GitHub GraphQL API is available](https://github.com/graphql-rust/graphql-client/tree/master/examples/github), as well as sample [rustdoc output](https://www.tomhoule.com/docs/example_module/).
86
85
86
+
## Alternative workflow using the CLI
87
+
88
+
You can introspect GraphQL APIs and generate module from a command line interface to the library:
89
+
90
+
```bash
91
+
$ cargo install graphql_client_cli
92
+
$ graphql-client --help
93
+
```
94
+
87
95
## Deriving specific traits on the response
88
96
89
97
The generated response types always derive `serde::Deserialize` but you may want to print them (`Debug`), compare them (`PartialEq`) or derive any other trait on it. You can achieve this with the `response_derives` option of the `graphql` attribute. Example:
0 commit comments