mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 09:34:28 +03:00
13 lines
290 B
JavaScript
13 lines
290 B
JavaScript
export const createTask = async ({ description }, context) => {
|
|
return context.entities.Task.create({
|
|
data: { description }
|
|
})
|
|
}
|
|
|
|
export const updateTask = async (args, context) => {
|
|
return context.entities.Task.update({
|
|
where: { id: args.taskId },
|
|
data: args.data
|
|
})
|
|
}
|