({
name,
icon,
}: Pick<BookmarkFolder, 'name' | 'icon'>)
| 242 | `; |
| 243 | |
| 244 | export const createBookmarkFolder = async ({ |
| 245 | name, |
| 246 | icon, |
| 247 | }: Pick<BookmarkFolder, 'name' | 'icon'>): Promise<BookmarkFolder> => { |
| 248 | return gqlClient |
| 249 | .request<{ |
| 250 | createBookmarkList: BookmarkFolder; |
| 251 | }>(CREATE_BOOKMARK_FOLDER, { |
| 252 | name, |
| 253 | icon, |
| 254 | }) |
| 255 | .then((data) => data.createBookmarkList); |
| 256 | }; |
| 257 | |
| 258 | export const UPDATE_BOOKMARK_FOLDER = gql` |
| 259 | mutation UpdateBookmarkList($id: ID!, $name: String!, $icon: String) { |
nothing calls this directly
no outgoing calls
no test coverage detected