Importing a tRPC schema
Importing
Section titled “Importing”File ▸ Import (Ctrl+I) then your tRPC router’s JSON schema, usually served
at <base>/.trpc/_schema.
When you import by URL, Restorm works out the router’s base URL by removing that suffix: the requests it creates therefore point straight at the right place.
What is imported
Section titled “What is imported”| Element | What Restorm makes of it |
|---|---|
| Each procedure | A tRPC request |
Its kind | The query or mutation type |
| Its input schema | A sample JSON input, as best it can |