This video could not play here.
It may be members-only, region-restricted, or unavailable in embedded players.
E-commerce with #Directus and #Nextjs - [05] - Fix M2M Relationship From Part 04
In this episode we are going to fix a mistake that I made in part 04 of this course.
If you watched the previous episode you know I screwed up a bit while doing Many to Many relationship. Since I don’t wanna deal with that mistake throughout this course, I will show you how to correct that in this quick episode.
I’m also gonna show how to create inverse relation between products and categories.
The problem is mainly that I had a brain fart during last episode and called this field product_categories. It should only be called category or categories, just as the inverse relation, should be called product or products.
So now we are going to fix that.
### Code used in this tutorial
### You can support my work on Patreon
https://patreon.com/watchlearn
### Follow me on Social Media
Github: https://github.com/ivandoric Twitter: https://twitter.com/ivan_doric Instagram: https://www.instagram.com/watchlearntuts Facebook: https://facebook.com/watchlearntutorials