( items: PicksItemInput[], )
| 297 | }); |
| 298 | |
| 299 | export const upsertPicks = async ( |
| 300 | items: PicksItemInput[], |
| 301 | ): Promise<UpsertPicksResult> => { |
| 302 | const data = await gqlClient.request<{ upsertPicks: UpsertPicksResult }>( |
| 303 | UPSERT_PICKS_MUTATION, |
| 304 | { items }, |
| 305 | ); |
| 306 | return data.upsertPicks; |
| 307 | }; |
| 308 | |
| 309 | /** |
| 310 | * The author's own count of unique opens, read on its own: the page itself |