/** Lists users through the invocation's sole database context for the inferred database-users HTTP route. */ import { defineFunction } from "relkit/functions"; import { z } from "zod"; export default defineFunction({ input: z.object({}), output: z.array(z.object({ id: z.number(), email: z.string() })), handler: (_input, context) => context.database.users.findMany(), });