Skip to content

fix(types): remove = never default from FindManyArgs TOrderBy param#1154

Merged
pyramation merged 1 commit into
mainfrom
fix/remove-findmany-never-default
May 13, 2026
Merged

fix(types): remove = never default from FindManyArgs TOrderBy param#1154
pyramation merged 1 commit into
mainfrom
fix/remove-findmany-never-default

Conversation

@pyramation
Copy link
Copy Markdown
Contributor

Summary

Same fix as FindFirstArgs (PR #1026) — remove the = never default from FindManyArgs<TSelect, TWhere, TOrderBy>.

Codegen always supplies a concrete TOrderBy type, so the default never fires. Removing it avoids a confusing API surface where orderBy appears available but silently rejects all values (since never[] accepts nothing).

Files: 1 template + 13 generated SDKs + 1 snapshot + 1 test comment update

Review & Testing Checklist for Human

  • Verify generated SDK select-types.ts files no longer have = never on FindManyArgs

Notes

Link to Devin session: https://app.devin.ai/sessions/7d04ac62fc67430aba0aaa40e044eb14
Requested by: @pyramation

Same fix as FindFirstArgs — codegen always supplies a concrete TOrderBy,
so the default never fires. Removing it avoids a confusing API surface
where orderBy appears available but silently rejects all values.
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@pyramation pyramation merged commit 48770ac into main May 13, 2026
38 checks passed
@pyramation pyramation deleted the fix/remove-findmany-never-default branch May 13, 2026 23:44
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