CreateBookmark
Creates a bookmark within a bookmark folder. 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": "58ccb96c-8e90-4464-86e0-f284442981df",
"note": "xyz789",
"user": "User",
"topic": "Topic",
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"course": "course-1",
"createdAt": "2023-12-20T16:58:58.782Z",
"deleted": true,
"bookmarkFolder": "BookmarkFolder"
}
}
}