I’ve created 15 models and only been getting every columns in few of the table randomly. What might be causing this? Can anyone help me?
hi every one i am using node-express with sequelize whenever i use this query i am getting incorrect count. Tabel product contain One product while it’s returning count 3.
code is below
The search on
Category is working, how to apply search on
Announcement as well?
I am a beginner nodejs sequelize ORM. I want to know how to prevent sql injection on NodeJS sequelize ORM.
I am using Sequelize to map objects to my already existing database, in this database they didnt use the auto-generated timestamps, they did their own datetime work, the current way the database stores the date is in
YYYY-MM-DD HH:MM:SS.MS however using sequelize, i am returning a date that looks like
YYYY-MM-DD HH:MM:SS.MS +00:00 and i believe this is whats tripping me up. as i am receiving an error
Conversion failed when converting date and/or time from character string. I tried even accessing the
Date() object and building my own date string, and i got the same error. even though it follows the correct formatting.
I wrote a custom data type by extending Abstract, like in the example listed for the following link: https://sequelize.org/v5/manual/data-types.html. Everything appears to work until I try to save foreign keys, in this case it continues to generate a new UUID instead of getting the foreign key passed in the object to the create method.
I have configured table the many-to-many relationship to itself. This is a table that implements the “interface” – “I can have an overview, reviewable”
I am trying to migrate from MySQL to Postgres, I used pgLoader to move my data, reading operations seems to work fine but I am having this issue – When I am trying to create a new record using model.create() I am getting
SequelizeDatabaseError: null value in column of relation violates not-null constraint
i started to use the models/index file that squeli-cli generate and now this is generateing me a error in the asociations