Skip to content

Commit 6ba8ead

Browse files
esseswannLegNeato
authored andcommitted
Using context for Database
For some this error is not uncovered during compile time
1 parent 18c479e commit 6ba8ead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/book/content/types/objects/using_contexts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ For example, when using async runtime with [work stealing][2] (like `tokio`), wh
101101
# use juniper::graphql_object;
102102
use tokio::sync::RwLock;
103103

104+
impl juniper::Context for Database {}
105+
104106
struct Database {
105107
requested_count: HashMap<i32, i32>,
106108
}

0 commit comments

Comments
 (0)