UpdateBookmark
The results of this mutation can be affected by providing an authToken header to set a user for the operation.
UpdateBookmark(
id: ID!
note: String
bookmarkFolder: ID!
): Bookmark!
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UpdateBookmark.id
● ID!
non-null scalar
UpdateBookmark.note
● String
scalar
UpdateBookmark.bookmarkFolder
● ID!
non-null scalar
Type
Bookmark
object
Contains data for a bookmark.
Examples
Query:
UpdateBookmark(
$id: ID!,
$note: String,
$bookmarkFolder: ID!
) {
UpdateBookmark(
id: $id,
note: $note,
bookmarkFolder: $bookmarkFolder
) {
id
note
user {
...UserFragment
}
topic {
...TopicFragment
}
topicId
course {
...CourseFragment
}
createdAt
deleted
bookmarkFolder {
...BookmarkFolderFragment
}
}
}
Variables:
{
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"note": "abc123",
"bookmarkFolder": "0e99a117-e3b6-40a6-867c-6b3bbc166b41"
}
Response:
{
"data": {
"UpdateBookmark": {
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"note": "xyz789",
"user": "User",
"topic": "Topic",
"topicId": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"course": "course-1",
"createdAt": "2025-03-26T13:39:48.013Z",
"deleted": false,
"bookmarkFolder": "BookmarkFolder"
}
}
}