async-graphql 1.11.1

The GraphQL server library implemented by rust
Documentation
# Context

The main goal of `Context` is to acquire global data attached to Schema. **Note that if the return value of resolve function is borrowed from `Context`, you need to explictly state the lifetime of the argument.**

The following example shows how to borrow data in `Context`.

```rust
use async_graphql::*;

struct Query;

#[Object]
impl Query {
    async fn borrow_from_context_data<'ctx'>(
        &self,
        ctx: &'ctx Context<'_>
    ) -> &'ctx String {
        ctx.data::<String>
    }
}
```