GridVids
Sign in with YouTube

E-commerce with #Directus and #Nextjs - [05] - Fix M2M Relationship From Part 04

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

Watch and Learn 4 years ago

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

https://bit.ly/3HIV0ca

### 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