Skip to content

Todo doesn't update at all both when marking done/ not done and when inputting text (with FIX) #25

@alocoda

Description

@alocoda

Bug description

LOG:

STATUS 500

Invalid prisma.todo.update() invocation:

{
where: {
uid: 'ckyqwgk7k0002h6tizorle0wb'
},
data: {
done: true,
text: null
~~~~
}
}

Argument text for data.text must not be null. Please use undefined instead.

Steps to reproduce

"prisma": "^3.8.1"

Expected behavior

Should update the element.

Example repository

https://github.com/gitpod-io/full-stack-web-development.git

when using prisma 3.8.1

Anything else?

FIX

text: data.text != null? data.text : undefined

If there's text then use data text, if not (marking done/ not done only), do not include text.

// https://www.prisma.io/docs/concepts/components/prisma-client/null-and-undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions