T
Join ServertRPC
❓-help
Calling a trpc endpoint inside of a trpc endpoint
Hey all.
I'm wondering how I am able to call these endpoints from within themselves?
For example, I'd like to call
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 }) => {
}),
});
@cje did a video on this but I'm not on my laptop to find it
Tldr don't do it
Oh.. okay. If not this, how else?
Message Not Public
Sign In & Join Server To View
Thanks for the responses guys. 🙂