Skip to content

PgCondition "RECORD_EXPRESSION" mode#3051

Merged
benjie merged 6 commits into
mainfrom
record-expression
May 13, 2026
Merged

PgCondition "RECORD_EXPRESSION" mode#3051
benjie merged 6 commits into
mainfrom
record-expression

Conversation

@benjie
Copy link
Copy Markdown
Member

@benjie benjie commented May 13, 2026

Enables applying filters to a record expression e.g. (my_table.my_column) for dealing with composite columns: (my_table.my_column).my_attribute = 'MyValue'

NOTE: this is NOT for use with expensive expressions (e.g. (my_function(row_value))) since the expression may appear multiple times in the resulting query. We can add a different mode for that later that does (select ${sqlConditions} from (select (${expr}).*) as ${alias}) instead - but that was excessive for this. We could actually do it with this mode but a flag to tell it to use a subquery (subquery: true).

benjie added 4 commits May 13, 2026 10:51
…ostgraphile-plugin-connection-filter doesn't need to rely on a hack to enable filtering on composite columns.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 13, 2026

🦋 Changeset detected

Latest commit: 4100c78

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@dataplan/pg Patch
pgl Patch
postgraphile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@benjie benjie enabled auto-merge May 13, 2026 10:03
@benjie benjie merged commit afd92a7 into main May 13, 2026
65 checks passed
@benjie benjie deleted the record-expression branch May 13, 2026 10:22
@github-actions github-actions Bot mentioned this pull request May 13, 2026
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