zakodium/adonis-mongodb

Env.getOrFail() is deprecated

DealerUp opened this issue · 1 comments

On generate migrations

$ node ace mongodb:make:migration orders
(node:51980) Env.getOrFail() is deprecated. Use Env validations instead: DeprecationWarning
(node:51980) Env.getOrFail() is deprecated. Use Env validations instead: DeprecationWarning
CREATE: mongodb/migrations/1611147864077_orders.ts

This warning comes from the config/mongodb.ts file, so you'll have to fix it on your side. The template is now fixed in this repo.