Skip to content

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

@jiashengguo

Description

@jiashengguo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions