Skip to content

Support object shorthand in logical predicates - #11707

Open
brookslybrand wants to merge 2 commits into
mainfrom
brookslybrand/support-object-logical-predicates
Open

Support object shorthand in logical predicates#11707
brookslybrand wants to merge 2 commits into
mainfrom
brookslybrand/support-object-logical-predicates

Conversation

@brookslybrand

@brookslybrand brookslybrand commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The documented object shorthand fails when it is nested inside or() or and():

where: or({ username: input }, { email: input })

In simple terms, where understands these objects, but the logical helpers only understood predicates built with helpers such as eq().

This updates and() and or() to accept the same object-or-predicate input used by where() and normalize each child with the existing object shorthand logic. It also preserves precise column inference when objects and explicit predicates are mixed.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

A preview build has been created for this PR. You can install it using:

pnpm install "remix-run/remix#preview/pr-11707&path:packages/remix"

This preview build will be updated automatically as you push new commits.

@brookslybrand
brookslybrand requested a review from mjackson August 17, 2026 16:38
@brookslybrand brookslybrand self-assigned this Aug 17, 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