Using context for Database

For some this error is not uncovered during compile time
This commit is contained in:
jsus 2021-09-21 00:09:00 +03:00 committed by Christian Legnitto
parent 18c479e999
commit 6ba8ead1fd

View file

@ -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>,
}