character.get?batch=1&input={}
character.get?batch=1&input={"0": {}}
client
import { createTRPCProxyClient, httpBatchLink } from "@trpc/client";import type { AppRouter } from "../../../server/src/api";const client = createTRPCProxyClient<AppRouter>({ links: [ httpBatchLink({ url: 'http://localhost:8000/', }) ]})client.character.get.query()export default client
import { initTRPC } from '@trpc/server';import { Context } from './context';import { createCharacterRouter } from './character/router';import { createSteamIdRouter } from './steamId/router';export const createRouter = () => { const t = initTRPC.context<Context>().create(); const router = t.router({ character: createCharacterRouter(t), steamId: createSteamIdRouter(t), }); return router;};