Those field resolvers are aware of the ID passed from the parent. If a parent returns an Object containing the event ID argument, it’s available as the first argument to its field resolvers. You could also use context, but I like to keep context free of random variables if I can help it.
I updated that example. Appreciate the help! :-)
Hi Avi, thanks for the read and the comment.
I tried to simplify things by removing some details, but it ended up backfiring on me. 😅
I updated the post to expose a completely different schema that includes IDs and the N+1 problem. Hoping that clears it up a bit.