adeelibr / deno-playground

deno playground repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 1: createTodo does not set `todo` value

michaelachrisco opened this issue · comments

On default, when a user adds the following into postman:

{
    "todo": "eat a lama"
}

image

The following result does not contain the new todo item.

{
    "success": true,
    "data": [
        {
            "id": "53706530-3930-4ecd-9933-09de0c54388c",
            "todo": "walk dog",
            "isCompleted": true
        },
        {
            "id": "23462078-3a14-44ee-a161-7e56d805b901",
            "todo": "eat food",
            "isCompleted": false
        },
        {
            "id": "d9b3ff7a-1fc9-40dc-b12f-b10a89f1d212",
            "todo": "exercise",
            "isCompleted": true
        },
        {
            "id": "cf00b251-3adc-4b73-b3ec-3d6ba580f9ed",
            "todo": "read a book",
            "isCompleted": false
        },
        {
            "id": "795accc2-706b-4083-8c89-2233de0a2c09",
            "isCompleted": false
        }
    ]
}

Merge the commit by @michaelachrisco , also update the tutorial , so it will save others a lot of time. This is a great starter tutorial for Dino .

it works, but the way it was done in the tutorial makes sense. Why is it not working?

@Lumca got to do with the deno versioning i think, this tutorial is base don older version of deno i think