Using context for Database
For some this error is not uncovered during compile time
This commit is contained in:
parent
18c479e999
commit
6ba8ead1fd
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ For example, when using async runtime with [work stealing][2] (like `tokio`), wh
|
|||
# use juniper::graphql_object;
|
||||
use tokio::sync::RwLock;
|
||||
|
||||
impl juniper::Context for Database {}
|
||||
|
||||
struct Database {
|
||||
requested_count: HashMap<i32, i32>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue