Category "adonis.js"

How to use mocks in tests with Adonis 5 (adonisjs/fold package)?

I have an API built with Adonis 5 (core version 5.4.0). The tests are made with Adonis' own runner, japa (version 3.1.1). As per the Adonis documentation, I bui

Loop data on request multipart field

Im using request multipart field on JS, but why my input data its giving some loop like this : { name_speaker: 'oklee' } { name_speaker: 'oklee', topic: 'yes' }

Loop data on request multipart field

Im using request multipart field on JS, but why my input data its giving some loop like this : { name_speaker: 'oklee' } { name_speaker: 'oklee', topic: 'yes' }

AdonisJs - Cannot find module

In AdonisJS I created a controller with core command node ace make:controller TodoController, but I am getting this Cannot find module Creating Controller: node

Yarn global install: "adonis: command not found"

Installed Adonis with yarn on Ubuntu 18 (running on WSL2 VM): pomatti@NT-03024:~/Projects/myApp$ yarn global add @adonisjs/cli yarn global v1.19.1 [1/4] Resolv

How to give a unique constraint in lucid model, I am using lucid in adonis with typescript

In adonis.js i am trying to add a unique constraint to email field just like we do it in sequelize,prismajs or any other orm.Is it posible to add in adonis.

how to create a path and query validation in adonis5

In adonis5 i am currently using schema based validation, but these validation is only applicable to request body . how i can validate path and query parameter v

Adonisjs How to cast boolean to false and true in a model instead of 0 or 1?

This is my table field (open) but in response, it returns 0 1 but I want true false instead of 0 1 I am using adonis MySQL table.boolean('open').notNullable().