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