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 image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

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

Okay