Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] FindManyArgs could have both `include` and `select` defined without showing error

Open
#2,665 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Sohail52 is already working on this.

Since Jul 4, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
backend

Research direction

The issue shows FindManyArgs accepts both include and select while the runtime rejects that pair. No file is named in the payload, so start from where ZenStack generates the model query types (the UserFindManyArgs definition) and reproduce the snippet in a type-level test. Done means the generated type makes include and select mutually exclusive, matching Prisma, with a regression test asserting the type error.

Written by the indexing model from the issue text.

Description

Description and expected behavior

The below code would pass type checking but shows runtime error instead:

  const args = {
    include: { posts: true },
    select: { email: true },
  } as UserFindManyArgs;

  db.user.findMany(args);

Environment (please complete the following information):

  • ZenStack version: v3
Dominant language
TypeScript
Stars
2.9k
Forks
157
Avg merge
11h 42m
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from zenstackhq/zenstack

All issues in zenstackhq/zenstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.