From 7eb8ba93daacef77ca7266fdfb9e5abc8a720eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20J=C3=BCrgensmeyer?= <6493966+sj14@users.noreply.github.com> Date: Tue, 5 Jul 2022 03:39:11 +0200 Subject: [PATCH] Fix CreateTodo (#2256) --- docs/content/getting-started.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index 5e89ef4ad6..00f4fabf19 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -253,6 +253,7 @@ func (r *mutationResolver) CreateTodo(ctx context.Context, input model.NewTodo) Text: input.Text, ID: fmt.Sprintf("T%d", rand.Int()), User: &model.User{ID: input.UserID, Name: "user " + input.UserID}, + UserID: input.UserID, } r.todos = append(r.todos, todo) return todo, nil