skip to Main Content

Nodejs Sequelize – Mysql

I have these 2 models: Orders Models Solutions model Orders Model 'use strict'; const { Model } = require('sequelize'); module.exports = (sequelize, DataTypes) => { class Orders extends Model { /** * Helper method for defining associations. * This method…

VIEW QUESTION

can't import mysql in node.js

I didn't expect that I'll stuck with this simple (at first glance) question, but I really haven't find anything helpful about the problem. I use the following code in my connect.js file: `let mysql = require('mysql'); let connection = mysql.createConnection({…

VIEW QUESTION
Back To Top
Search