Отклонение в Node.js

Я пытаюсь заполнить данные в Node.js и mongodb, также я добавил в проект mongoose. Я построил схему, исходную папку и внутри исходной папки "product-seeder.js". Я запустил зерно с "node product-seeder.js", но у меня есть эта ошибка.

E:\Development\Axshop\Axshop\seed> node product-seeder.js
(node:13148) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Invalid schema, expected `mongodb` or `mongodb+srv`
(node:13148) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Все ли меня направляют?

Благодарю.

0 ответов

Другие вопросы по тегам