0 votes
0 answers
14 views
How do I get the typed raw attributes of a Sequelize model that's a property of another model that is optional?I have a Sequelize model that has a property that is also a model. In this case, Category has a property ParentCategory that is an optional model of Category. When I get the "non model" ...
asked Jul 23 at 9:280 votes
0 answers
13 views
exclude sequelize lib when using vite to build applicationI have a frontend web project A with dependencies B, the dependencies B using sequelize that only work in node with server side. So I tried to exlclude sequelize https://sequelize.org/ in project A ...
asked Jul 13 at 13:270 votes
1 answer
66 views
How to properly include SQLite3 with an Electron, Electron Forge, Sequelizer set-up in production?I've been trying to set-up a working Electron application using Electron Forge with Sqlite3 and Sequelize. This has worked great up until where I need to actually build and package, and distribute the ...
asked Jul 12 at 18:43-3 votes
1 answer
53 views
Getting False-positive SQL Injection warnings on parameterized Sequelize queries in Snyk CodeI maintain a Node.js (v14.x) + Express + Sequelize (v6.x) application and use Snyk Code to catch security issues in our CI pipeline. We rely heavily on Sequelize’s parameter binding (:param) to ...
asked Jul 7 at 12:38 How to add order clause in sequelize-cursor-paginationI'm using the sequelize-cursor-pagination package to implement pagination in my Node-Postgres application. I need to order my results based on a field from an included (associated) model, but the ...
asked Jul 1 at 13:28-1 votes
1 answer
58 views
How to exclude unnecessary database dialects while bundling with esbuild/rollup in Vite with Sequelize?I have been scratching my head for a while now trying to figure out how to exclude unnecessary database dialect adapters. For context, I am building an app with Vite. Its using ElectronJs and ...
asked Jun 22 at 3:060 votes
1 answer
35 views
Sequelize Associations Miss Some DataI'm making a query to Articles table to get the article data with publisher, tags, images and categories. The relation between publisher and article is M:1, between tags and articles N:M, between ...
asked Jun 21 at 23:000 votes
1 answer
34 views
Dynamic includes in node API with SequelizeI am creating a node API connecting to a mySql db using Sequelize. I want users of the API to be able to specify which models to include in the results of a query. For example I have a model like this:...
asked Jun 17 at 19:420 votes
0 answers
36 views
Associating two models twiceIn sequelize documentation, it is stated in association alias section Aliases are especially useful when you need to define two different associations between the same models. For example, if we have ...
asked Jun 14 at 13:181 vote
0 answers
57 views
Error creating property: no pg_hba.conf entry for host "172.31.8.1", user "postgres", database NAME, no encryptionI'm having issues running RDS sequelize queries. I'm using EC2 Node.js original: error: no pg_hba.conf entry for host "172.31.8.1", user "postgres", database NAME, no encryption 5|...
asked Jun 13 at 23:081 vote
0 answers
33 views
Is possible to use VS Code Intellisense with Sequelize + JSI'm learning sequelize + other stuff and I'm using sequelize-cli to initialize the sequelize and generate the models. When I try to use the model in other file it doesn't suggest anything related to ...
asked May 29 at 15:12 Migrating sequelize model to typescript and getting the error "error relation does not exist"I'm in the process of migrating a Javascript project to Typescript. One of the steps is to migrate the sequelize models. I'm following the instructions located at: https://sequelize.org/docs/v6/other-...
asked May 23 at 19:150 votes
0 answers
22 views
graphql-sequelize and useMasterI would like to know how to correctly use useMaster with graphql-sequelize. I'm trying to force the query to go to the master database using this code: before: (findOptions) => { const ...
asked May 16 at 1:49 Sequelize magic method not adding foreign keySequelize's createXXXXX method doesn't seem to be adding the necessary foreign key. This running the following code for these two models gives me a "notNull Violation: Seat.office_id cannot be ...
asked May 12 at 12:240 votes
1 answer
53 views
Getting just the associated id(s) of a recordI don't want to eagerly load all the associated data, it won't be used. But, I might want to know that related records exist, for example to link to related records. So I'm trying to set up an ...
asked May 10 at 18:18RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4