Many to many relationships difficulties

Was able to get it by creating an implicit. Then updating the hero with a connection like the following after reading this thread

export const updateHero: MutationResolvers['updateHero'] = ({ id, input }) => {
  return db.hero.update({
    where: { id: id },
    data: { quests: { connect: [{ id: input.questId }] } },
  })
}