DEV Community

Cover image for Use Lucid ORM to Query Related Data from a MySQL Database [AdonisJS]
Patrick O'Dacre
Patrick O'Dacre

Posted on

Use Lucid ORM to Query Related Data from a MySQL Database [AdonisJS]

Subscribe to my YouTube channel for more tutorials on working with VueJS and AdonisJS -- an MVC framework for NodeJS!

In this video I show you how to define relationships between database tables using the Lucid ORM.

Once those relationships are defined, we'll easily be able to load related data with our main query.

Links:

Githup Repo for code used in the video

Related YouTube Videos

Discussion (0)