Skip to content

Commit

Permalink
Fix CreateTodo (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 authored Jul 5, 2022
1 parent 0b0e5ce commit 7eb8ba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7eb8ba9

Please sign in to comment.