Relations Example
Enable includeRelations to generate relation endpoints in oRPC routers.
ts
export default defineConfig({
schema: 'src/db/schemas/index.ts',
outDir: 'src/api',
generators: [{ kind: 'orpc', includeRelations: true }],
});This will add endpoints like listByParentId, listChildren, or similar, depending on your template’s procedures definitions.
Tip: ensure foreign keys and joining table metadata are present in your Drizzle schema so analyzer can infer relations.
Need something else?
If this example doesn't cover what you need, DM me on X (https://x.com/omardulaimidev) and we can scope it together.

