chicoC
tRPC2y ago
2 replies
chico

How do you call a router procedure from another router procedure?

.query(async ({ ctx, input }) => {
      const wikiQuery = await routerFromAnotherFile.queryWikiTable(input);


error
Argument of type '{ similar?: boolean | undefined; keyword?: string | undefined; limit?: number | undefined; sortBy?: string | undefined; } | undefined' is not assignable to parameter of type 'ProcedureCallOptions<unknown>'.
  Type 'undefined' is not assignable to type 'ProcedureCallOptions<unknown>'.ts(2345)
Was this page helpful?