Skip to content

docs: fix the association reference example of sql.attribute - #845

Open
wikirik-agent wants to merge 1 commit into
mainfrom
wikirik-agent/attribute-syntax-docs
Open

wikirik-agent wants to merge 1 commit into
mainfrom
wikirik-agent/attribute-syntax-docs

Conversation

@wikirik-agent

Copy link
Copy Markdown

Description of change

The sql.attribute section of the raw queries page shows sql.attribute('$user$.name') as the association reference syntax. The attribute syntax parser reads that as the attribute user with a JSON path name: on postgres it fails with operator does not exist: character varying -> unknown, and on mysql/mariadb it silently returns no rows. The association reference syntax, used everywhere else in the docs, is $user.name$.

Found while reviewing the attribute syntax parser in sequelize/sequelize#18460.

🤖 Generated with Claude Code

`$user$.name` is parsed as a JSON path on the `user` attribute; the association reference syntax is `$user.name$`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@wikirik-agent
wikirik-agent requested a review from a team as a code owner September 24, 2026 13:24
@github-actions

Copy link
Copy Markdown

🚀 Website draft URL
📋 Deployment logs

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant