UpdateBookmarkFolder
Changes the name of a bookmark folder. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
UpdateBookmarkFolder(
id: ID!
name: String!
): BookmarkFolder!
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UpdateBookmarkFolder.id
● ID!
non-null scalar
UpdateBookmarkFolder.name
● String!
non-null scalar
Type
BookmarkFolder
object
Contains data for a bookmark folder.
Examples
Query:
UpdateBookmarkFolder(
$id: ID!,
$name: String!
) {
UpdateBookmarkFolder(
id: $id,
name: $name
) {
id
name
user {
...UserFragment
}
deleted
bookmarks {
...BookmarkFragment
}
defaultFolder
bookmarkCount
externalResourceId
}
}
Variables:
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"name": "abc123"
}
Response:
{
"data": {
"UpdateBookmarkFolder": {
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"name": "abc123",
"user": "User",
"deleted": false,
"bookmarks": [
"Bookmark"
],
"defaultFolder": false,
"bookmarkCount": 678,
"externalResourceId": "58ccb96c-8e90-4464-86e0-f284442981df"
}
}
}