DEV Community

Cover image for Customize Database Queries in AdonisJS
Patrick O'Dacre
Patrick O'Dacre

Posted on

1 3

Customize Database Queries 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 customize Lucid database queries based on user input or other logic to make your API routes more reusable.

This information will help you a lot if you want to create filterable / searchable lists of data.

Links:

Github Repo

Related YouTube Videos

Use Lucid ORM to Query Related Data from a MySQL Database

Apply Constraints to Lucid Relationships in AdonisJS

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)

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

👋 Kindness is contagious

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

Okay