From 8599cef63c48bc74c9f66544cc8b5ce0fbfdf90b Mon Sep 17 00:00:00 2001 From: rongfengliang Date: Wed, 25 Jul 2018 10:23:12 +0800 Subject: [PATCH] Update getting-started.md CreateTodo UserID input should be UserId not User --- docs/content/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/getting-started.md b/docs/content/getting-started.md index fdf75dd4dfb..292ac856e5c 100644 --- a/docs/content/getting-started.md +++ b/docs/content/getting-started.md @@ -208,7 +208,7 @@ func (a *mutationResolver) CreateTodo(ctx context.Context, input model.NewTodo) todo := model.Todo{ Text: input.Text, ID: fmt.Sprintf("T%d", rand.Int()), - UserID: input.User, + UserID: input.UserId, } a.todos = append(a.todos, todo) return todo, nil