( userId: string, type: UserExperienceType, first = 100, )
| 275 | `; |
| 276 | |
| 277 | export const getUserExperiencesByType = async ( |
| 278 | userId: string, |
| 279 | type: UserExperienceType, |
| 280 | first = 100, |
| 281 | ): Promise<Connection<UserExperience>> => { |
| 282 | const result = await gqlClient.request<{ |
| 283 | userExperiences: Connection<UserExperience>; |
| 284 | }>(USER_EXPERIENCES_BY_TYPE_QUERY, { userId, type, first }); |
| 285 | |
| 286 | return result.userExperiences; |
| 287 | }; |
| 288 | |
| 289 | const UPSERT_USER_GENERAL_EXPERIENCE = gql` |
| 290 | mutation UpsertUserGeneralExperience( |
no outgoing calls
no test coverage detected