gurkle 0.3.1

GraphQL client for Rust, with typed requests and responses, and subscriptions!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use gurkle::*;

#[derive(GraphQLRequest)]
#[graphql(
    query_path = "tests/default/query.graphql",
    schema_path = "tests/default/schema.graphql",
    variables_derives = "Default"
)]
struct OptQuery;

#[test]
fn variables_can_derive_default() {
    let _: <OptQuery as GraphQLRequest>::Variables = Default::default();
}