async-graphql 2.7.3

A GraphQL server library implemented in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Apollo Tracing支持

`Apollo Tracing`提供了查询每个步骤的性能分析结果,它是一个`Schema`扩展,性能分析结果保存在`QueryResponse`中。

启用`Apollo Tracing`扩展需要在创建`Schema`的时候添加该扩展。

```rust
use async_graphql::*;
use async_graphql::extensions::ApolloTracing;

let schema = Schema::build(Query, EmptyMutation, EmptySubscription)
    .extension(ApolloTracing) // 启用ApolloTracing扩展
    .finish();

```