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

3 2

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

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay