juniper 0.11.1

GraphQL server library
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate juniper;

#[test]
fn pub_operation_name() {
    use juniper::http::GraphQLRequest;

    let request = GraphQLRequest::new("query".to_string(), Some("name".to_string()), None);

    assert_eq!(request.operation_name(), Some("name"));
}