UserBookmarksByFolder
Returns the bookmarks of the current user within a folderId. The results of this query can be affected by providing an authToken header to set a user for the operation.
UserBookmarksByFolder(
id: ID!
): [Bookmark!]
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UserBookmarksByFolder.id
● ID!
non-null scalar
Type
Bookmark
object
Contains data for a bookmark.
Examples
Query:
UserBookmarksByFolder($id: ID!) {
UserBookmarksByFolder(id: $id) {
id
note
user {
...UserFragment
}
topic {
...TopicFragment
}
topicId
course {
...CourseFragment
}
createdAt
deleted
bookmarkFolder {
...BookmarkFolderFragment
}
}
}
Variables:
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df"
}
Response:
{
"data": {
"UserBookmarksByFolder": [
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"note": "xyz789",
"user": "User",
"topic": "Topic",
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"course": "Course",
"createdAt": "2023-12-20T16:58:58.782Z",
"deleted": true,
"bookmarkFolder": "BookmarkFolder"
}
]
}
}