I have a order table that refers to status table by foreign key status_id: $ select order_id, status_id from "order"; order_id | status_id ----------+-------
I have a order table that refers to status table by foreign key status_id: $ select order_id, status_id from "order"; order_id | status_id ----------+-------
sequqlize-cli db:seed:all is working fine, but how to seed only one file? Tried to db:seed:[name-that-i-gave-with-create-command] and db:seed:[full-path-to-seed
I am trying to code a website to work with ReactJS, NodeJs and MySQL. I have been using Sequelize and it works but i realised that it allows all usernames even
I am beginner in web dev and trying to create a Full stack project using Mysql Express React Node js. Facing this TypeError issue while using Sequalize with nod
Am new in Node Js, In my Node Js project am using sequelize ORM with MySql database. This is my query i want to write select query by month. This is my query
I do have a class that has 2 overloaded methods. public static create<M extends Model>( this: ModelStatic<M>, values?: M['_creationAttribu
First question on StackOverflow, long time reader first time poster or whatever people say. I'm developing a Discord bot in my free time using Discord.js, and I
I started using Sequelize with SQLite. When I try to insert or update a value, it doesn't check for type-errors. For example I can use string values in a column
I am able to run migrate command when I specify the database name, user and password directly. But when I provide with env variable/value. It says no database s
I am beginner in web dev and trying to create a project using Mysql, Node.js with Express. Facing this TypeError issue while using Sequalize. Can someone please
I have a many to many relationship between User and Category through UserCategory as below. let user = await User.findAll({ where: { id: req.query.user
I'm trying to get data using Sequelize in my Express app and I'm using SQL Server as database. Here is my code: Order.findAll({ attributes:[ [Sequ
I have a simple user model with 2 hooks. User.beforeCreate(setSaltAndPass) User.beforeUpdate(setSaltAndPass) the first works perfectly but the beforeUpdate doe
Whenever i am trying to connect the postgres through the sequelize for insertion/updation/retrieval i am getting following error. Previously it was working fine
Whenever i am trying to connect the postgres through the sequelize for insertion/updation/retrieval i am getting following error. Previously it was working fine
I am trying to delete rows associated with a row in a table, without deleting the main row (thus can't use CASCADE). This is the raw PostgreSQL query that does
I just ran npm install --save sequelize pg pg-hstore in my project root directory and now I am unable to invoke sequelize init. I get the error: -bash: sequeliz
Using Sequelize with MySQL. I have three models. Consultant, FamilyMember and Appointments. Appointment refers to Consultant and FamilyMember. I have defined th
I have this subquery that is used to check the existence of a column related to the source model. const defaultingLoans = await Loan.findAll({ where: {