Skip to content

포매터 및 코드

JSON을 tRPC 라우터로

tRPC router scaffold with Zod input — list, byId, create.

Runs in your browser

편집자 노트

Understanding · End-to-end types, zero schema language.

이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.

자주 묻는 질문

Quick answers.

How does the tool handle data types?

The generator inspects the JSON values to determine types like `z.string()`, `z.number()`, and `z.boolean()`. Nested objects are converted into `z.object()` calls and arrays into `z.array()` structures.

Does this work with tRPC v10?

Yes. The output uses the `t.router` and `t.procedure` syntax standard in tRPC v10 and later versions.

Can I use the output with any database?

Yes. The generated code provides the router structure and validation logic, which you can then connect to Prisma, Drizzle, or any other database ORM within the procedure resolvers.

Is my JSON data secure?

Yes. The conversion logic runs locally in your browser using JavaScript. No data is sent to a server or stored in a database.

사람들이 다음도 검색합니다.

관련 도구

More in this room.

모두 보기 포매터 및 코드