sequelize / sequelize/sequelize

Disable query field aliasing

Open
#5,708 21 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking change type: refactor
Dominant language
TypeScript
Stars
30.4k
Forks
4.3k
Avg merge
1d 6h
Merged PRs (30d)
68

Description

Instead of aliasing fields in the query and trying to figure out the name when coming from a subquery let's just disable aliasing completely and map it after the query has executed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing how query fields are aliased and how subquery results are mapped after execution; this is done when field aliasing is disabled and result names remain correct for subqueries.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.