sequelize doesn't return columns which include dot symbol
See original GitHub issueIssue Description
SQL group Query Result:
JavaScript log after findAll
:
Is it a bug? Can I use .
symbol in my column name?
If possible: Provide some suggestion on how we can enhance the docs
Additional context
Issue Template Checklist Is this issue dialect-specific?
- No. This issue is relevant to Sequelize as a whole.
- Yes. This issue only applies to the following dialect(s):
- I don’t know.
Would you be willing to resolve this issue by submitting a Pull Request?
- Yes, I have the time and I know how to start.
- Yes, I have the time but I don’t know how to start, I would need guidance.
- No, I don’t have the time, although I believe I could do it if I had the time…
- No, I don’t have the time and I wouldn’t even know how to start.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Join tables in SQL with duplicate column names into dot ...
Sequelize achieves this by doing something like this (paraphrasing select): select foo.id, foo.name, bar.id as "bar.id", bar.pet ...
Read more >Model - Sequelize
Returns true if this instance has not yet been persisted to the database ... tables having the same attribute/column names - which have...
Read more >6 Common Sequelize Queries Explained in SQL - Maxim Orlov
Because we have more than one table we use the dot notation to specify we want all columns just from the orders table...
Read more >The Comprehensive Sequelize Cheatsheet
Sequelize is the most famous Node ORM and is quite feature-rich, ... in all the columns you want to include in the composite...
Read more >Data Type and Structure Agnostic Sequelize Database Columns
Tragically, Sequelize does not support the true classic array of arrays of ... JSON.parse() on the column's data and returns the parsed data....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hmmm, great that you found a workaround, but I think this should be investigated anyway, it should work well.
seems
QUERY.raw = true
helped