Skip to content

Commit 1e733cc

Browse files
authored
Fix context in quickstart (#772)
1 parent 8b79f5b commit 1e733cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/book/content/quickstart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct Mutation;
114114
impl Mutation {
115115

116116
fn createHuman(context: &Context, new_human: NewHuman) -> FieldResult<Human> {
117-
let db = executor.context().pool.get_connection()?;
117+
let db = context.pool.get_connection()?;
118118
let human: Human = db.insert_human(&new_human)?;
119119
Ok(human)
120120
}

0 commit comments

Comments
 (0)