(handler: any)
| 1037 | queryResources as never, |
| 1038 | input, |
| 1039 | output as never |
| 1040 | ) as InvalidationEntry[]) |
| 1041 | : undefined |
| 1042 | const mergedInvalidation = mergeInvalidation(fromRequest, invalidation?.[key]) |
| 1043 | const makeProjectedMutation = (handler: any): any => { |
| 1044 | const mut: any = withDefaultInvalidation(mutation(handler), mergedInvalidation) |
| 1045 | return Object.assign(mut, { |
| 1046 | wrap: (options?: any) => Command.wrap({ mutate: mut, id: client[key].id }, options), |
| 1047 | fn: (options?: any) => Command.fn(client[key].id, options), |
| 1048 | project: (projectionSchema: any) => { |
| 1049 | const projected = { |
| 1050 | ...handler, |
| 1051 | handler: projectHandler(handler.handler, client[key].Request.success, projectionSchema) |
| 1052 | } |
| 1053 | return makeProjectedMutation(projected) |
| 1054 | } |
| 1055 | }) |
no test coverage detected
searching dependent graphs…