Calling a trpc endpoint inside of a trpc endpoint

BBenn2/3/2023
Hey all.

I'm wondering how I am able to call these endpoints from within themselves?

For example, I'd like to call getBotGuilds and getUserGuilds from within getAllGuilds.
export const guildRouter = createTRPCRouter({
  getBotGuilds: protectedProcedure.query(({ ctx }) => {
  }),
  getUserGuilds: protectedProcedure.query(({ ctx }) => {
    
    return [];
  }),
  getAllGuilds: protectedProcedure.query(({ ctx }) => {

  }),
});
A/Kalex / KATT2/3/2023
@cje did a video on this but I'm not on my laptop to find it
A/Kalex / KATT2/3/2023
Tldr don't do it
BBenn2/3/2023
Oh.. okay. If not this, how else?
UUUnknown User2/3/2023
Message Not Public
Sign In & Join Server To View
BBenn2/3/2023
Thanks for the responses guys. 🙂