MCPcopy Create free account
hub / github.com/upstash/jstack / mutation

Method mutation

packages/jstack/src/server/procedure.ts:254–266  ·  view source on GitHub ↗
(
    handler: ({
      ctx,
      c,
      input,
    }: {
      ctx: Ctx
      c: ContextWithSuperJSON<E>
      input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
    }) => Return,
  )

Source from the content-addressed store, hash-verified

252 }
253
254 mutation<Return extends OptionalPromise<ResponseType<any>>>(
255 handler: ({
256 ctx,
257 c,
258 input,
259 }: {
260 ctx: Ctx
261 c: ContextWithSuperJSON<E>
262 input: InputSchema extends ZodTypeAny ? z.infer<InputSchema> : void
263 }) => Return,
264 ): PostOperation<InputSchema, Return, E> {
265 return this.post(handler)
266 }
267
268 ws(
269 handler: ({

Callers 3

base.tsFile · 0.80
with-drizzle.tsFile · 0.80
post-router.tsFile · 0.80

Calls 1

postMethod · 0.95

Tested by

no test coverage detected