MCPcopy Create free account
hub / github.com/effect-app/libs / makeProjectedMutation

Function makeProjectedMutation

packages/vue/src/makeClient.ts:1039–1052  ·  view source on GitHub ↗
(handler: any)

Source from the content-addressed store, hash-verified

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 })

Callers 2

mapMutationFunction · 0.85
mapClientFunction · 0.85

Calls 4

withDefaultInvalidationFunction · 0.85
mutationFunction · 0.85
projectHandlerFunction · 0.85
wrapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…