Skip to main content

UpdateBookmark

Changes the note on a bookmark folder. 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

Run in Postman

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": "58ccb96c-8e90-4464-86e0-f284442981df",
"note": "xyz789",
"bookmarkFolder": "58ccb96c-8e90-4464-86e0-f284442981df"
}

Response:

{
"data": {
"UpdateBookmark": {
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"note": "abc123",
"user": "User",
"topic": "Topic",
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"course": "course-1",
"createdAt": "2023-12-20T16:58:58.782Z",
"deleted": true,
"bookmarkFolder": "BookmarkFolder"
}
}
}