MCPcopy Create free account
hub / github.com/dailydotdev/apps / createBookmarkFolder

Function createBookmarkFolder

packages/shared/src/graphql/bookmarks.ts:244–256  ·  view source on GitHub ↗
({
  name,
  icon,
}: Pick<BookmarkFolder, 'name' | 'icon'>)

Source from the content-addressed store, hash-verified

242`;
243
244export 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
258export const UPDATE_BOOKMARK_FOLDER = gql`
259 mutation UpdateBookmarkList($id: ID!, $name: String!, $icon: String) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected