From 6ba8ead1fd71ddd36fe9463f8333f2b3e73ecd18 Mon Sep 17 00:00:00 2001 From: jsus Date: Tue, 21 Sep 2021 00:09:00 +0300 Subject: [PATCH] Using context for Database For some this error is not uncovered during compile time --- docs/book/content/types/objects/using_contexts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/book/content/types/objects/using_contexts.md b/docs/book/content/types/objects/using_contexts.md index b3667899..1b65771c 100644 --- a/docs/book/content/types/objects/using_contexts.md +++ b/docs/book/content/types/objects/using_contexts.md @@ -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, }