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