question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sequelize doesn't return columns which include dot symbol

See original GitHub issue

Issue Description

SQL group Query Result: Screen Shot 2019-10-17 at 10 47 04 AM

JavaScript log after findAll: Screen Shot 2019-10-17 at 10 47 33 AM

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:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
papbcommented, Oct 17, 2019

Hmmm, great that you found a workaround, but I think this should be investigated anyway, it should work well.

1reaction
nairiharcommented, Oct 17, 2019

seems QUERY.raw = true helped

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found