DEV Community

Cover image for Apply Constraints to Lucid Relationships in AdonisJS
Patrick O'Dacre
Patrick O'Dacre

Posted on

2 1

Apply Constraints to Lucid 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 apply runtime constraints to any related data you add to your main query. ie: Limiting related customer projects to only those that are incomplete.

Links:

Github Repo

Related YouTube Videos

Use Lucid ORM to Query Related Data from a MySQL Database

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)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

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

Okay