AdonisJS Framework
banner
adonisjs.com
AdonisJS Framework
@adonisjs.com
A fully featured @nodejs.org framework for creating bespoke backend applications in record time. Created by @iamvirk.bsky.social.

Learn on @adocasts.com
As with our move to ESM, we want to stay aligned with the JavaScript spec and avoid TypeScript-only patterns. We’ll start testing the new syntax internally and share updates as we go. 🙌
May 2, 2025 at 8:47 AM
Welcome! 👋
March 23, 2025 at 10:07 AM
This global where clause can bite you if there are `or where` conditions in your query.

To mitigate that, we are removing the top-level `orWhere` method from the query builder, and you will be forced to always define a `orWhereGroup` to write or where conditions.
March 2, 2025 at 9:08 AM
All other parts of your application using DI will receive the same QueryClient instance during the current HTTP request.

For example, here I am fetching all the posts for a given tenant without remembering to always add this clause.
March 2, 2025 at 9:08 AM
1. Define a middleware that creates an instance of QueryClient and auto adds the `where tenant_id clause` to all the queries.

2. Bind this instance of the QueryClient to the container.
March 2, 2025 at 9:08 AM
In case you were already using the alpha version of the package, feel free to read Bentocache release notes:

github.com/Julien-R44/b...
Release v1.0.0 · Julien-R44/bentocache
Upgrade Guide 1.0.0 Breaking Changes Remove old syntax We removed the "legacy" syntax and only keep the POJO-one. For each method, the method signature is a full object, for example : bento.get({ k...
github.com
February 2, 2025 at 12:06 PM
👋
a close up of a man with a beard says hello there
Alt: Obi-Wan Kenobi saying "Hello there"
media.tenor.com
January 26, 2025 at 10:46 AM