This article explains how we can connect different types of content in a Next.js application. With this technique, we can add any kind of one-to-one, one-to-many, or even many-to-many relationship to our projects.
https://smashingmagazine.com/2021/06/creating-multi-author-blog-nextjs/