DEV Community

Cover image for Setup and Query Many to Many Relationships in AdonisJS
Patrick O'Dacre
Patrick O'Dacre

Posted on

7 1

Setup and Query Many to Many Relationships in 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 use Lucid to set up and query many to many relationships.

Links:

Github Repo - Starter Branch
Github Repo - Completed Code

Related YouTube Videos

Load Related Data with Eager Loading
Apply Constraints to Queries
Use Middleware to Stay DRY

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Retry later