-
Updated
Jun 8, 2020 - JavaScript
sequelizejs
Here are 198 public repositories matching this topic...
For DELETES, in this line https://github.com/tommybananas/finale/blob/master/lib/Controllers/delete.js#L23 the instance is removed from the context, which greatly limits what can be done in hooks after write.
A temp solution I have is backing up the instance in another hook, but this seems to be limiting. Sequelize destroy hooks still retain the instance in memory so that hooks can use informat
-
Updated
Mar 12, 2020 - JavaScript
The versions I'm using:
"sequelize": "^5.18.4",
"sequelize-cli": "^5.5.1",
"sequelize-paper-trail": "^3.0.1",
For some reason, when a new Revision record is created, it is missing these columns:
id | model | document | operation | revision | document_id | createdAt | updatedAt
----+-------+----------+-----------+----------+----------
Hello,
I was following yours great tutorial but I tried to set up my project using Sequelize v5, instead of v4, however, I got many errors regarding types incompatibility. Please check my code below.
import * as Sequelize from 'sequelize';
export interface UserAttributes {
id?: number;
name: string;
createdAt?: Da
-
Updated
Jun 4, 2020 - JavaScript
Add item price field
- Items should have optional "price" field
- Field already exists on the Item object
- Value will need to be passed to backend w/ payload
-
Updated
May 1, 2020 - JavaScript
When using view.search() getting a undefined property error in QueryGenerator.js where() function
Hi Guys, I'm using this package to make full text searches in my current system. I've followed the steps on how to implement the materialized views suggested on the documentation with no luck. I'm getting the following error
TypeError: Cannot read property 'field' of undefined
at Object.keys.forEach.key (~/proj/node_modules/pg-search-sequelize/lib/queryGenerator.js:100:59)
at Arra
-
Updated
Apr 29, 2020 - JavaScript
Right now the result of sequelize-auto-import is an object that will have its properties equal to the model name of the meta object that we pass to each model, but practically the dev can choose to not use these values an put other values for the model name and schema so we must extract these values from the sequelize model instead.
-
Updated
Nov 24, 2018 - JavaScript
-
Updated
Jan 9, 2018 - JavaScript
-
Updated
Sep 29, 2018 - JavaScript
-
Updated
Jun 8, 2019 - JavaScript
-
Updated
Aug 14, 2019 - JavaScript
-
Updated
Apr 20, 2017 - JavaScript
-
Updated
Sep 27, 2019 - JavaScript
-
Updated
Apr 3, 2019 - JavaScript
-
Updated
Apr 29, 2020 - JavaScript
-
Updated
Mar 31, 2019 - JavaScript
-
Updated
Jan 6, 2018 - JavaScript
-
Updated
Oct 17, 2018 - JavaScript
-
Updated
Jun 12, 2020 - JavaScript
-
Updated
Apr 15, 2020 - JavaScript
What's this issue about?
If a user doesn't own a park, they should not be able to create spots or carspots on that park
Hi Ahmer!
Thank for the excellent article https://vivacitylabs.com/setup-typescript-sequelize/. It was super useful in my TS migration.
I have a comment on the article and this is the only way I found to reach you. :-)
In CommentAttributes, you add the relation attribute as post?: PostAttributes | PostAttributes['id'];.
I don't think the PostAttributes['id'] part is right as Seque
-
Updated
Mar 15, 2017 - JavaScript
Improve this page
Add a description, image, and links to the sequelizejs topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sequelizejs topic, visit your repo's landing page and select "manage topics."
LDAP search should be configurable – not all companies store their primary employee information in a field called
mail, which is currently hardcoded at lib/model/db/company.js