Skip to main content

addTask method

String addTask ({required String title, required String description, required String deadline, required String eventId})

Implementation

static String addTask(\{
required String title,
required String description,
required String deadline,
required String eventId,
\}) =\>
'''
mutation \{
createTask(
data: \{ title: "$title", description: "$description", deadline: "$deadline" \}
eventId: "$eventId"
) \{
_id
title
description
createdAt
deadline
creator \{
_id
firstName
\}
event \{
_id
title
\}
\}
\}
''';