Comments (3)
That is already possible, and is pretty much what you did except that findAll and save must be awaited, and save
was not called
If it's not working, there may be a bug in your code. Don't hesitate to post a reproducible example that fails. With the current information, it's not possible for us to say what is wrong with the code
from sequelize.
@ephys - My bad, I had used await
in my original code but didn't put it in the description. It will be great if you can open the issue again.
I will try to create an example as soon as I can. I appreciate your responses. Thanks
from sequelize.
Don't worry we still get notified of changes on closed issues. We can reopen once we have the info we need to determine if there is an issue :)
from sequelize.
Related Issues (20)
- PostgreSQL. Error in getQueryInterface().describeTable() with column comments and schemas
- Unable to find dialect at HOT 2
- Cyclic sequelize sync doesn't handle several cases in the non-cyclic version HOT 1
- Introducing @EncryptedAttribute() decorator
- Add `Model.exists()` to allow efficient checking of at least one matching row
- Filter As on Properties of Associated Bs But Still Return all Bs Associated to the Resulting A's
- Feature Request: support 'schema' for MySQL HOT 1
- Merge Failure When Using Raw Where Query With Scope HOT 2
- Recieving sqlite related errors, but dialect used is postgres
- An In-Class @Scope Decorator HOT 1
- Add method for accessing #transactionCls Sequelize v7
- 使用webpack5 打包 后报错 TypeError: i is not a function HOT 2
- `unique: true` does not generate same index name and constraint in model and migrations
- Please include src/ in public package if you're going to publish source maps
- Node.js start fails on Linux platform due to invalid ELF header error HOT 1
- Weird Failure When Using this.reload(); "Cannot use offset or limit without a model or order being set" HOT 2
- Raw Queries with multiple Bind Parameters and in wrong order not working properly - (tested on Oracle)
- 0x939 is not supported by node-oracledb in Thin mode
- Ability To Chain Successive `withScope` Calls
- Use EXISTS for AbstractQueryGenerator._generateSubQueryFilter()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequelize.