Skip to content

Zenstack v2 api handler not working when using new "client generator" in Prisma 6 or 7 #2687

@sw34

Description

@sw34

Description and expected behavior
I am attempting to update a Zenstack v2 project to utilize Prisma v7. My database seed uses the enhanced client and it works as expected. In using the rest api handler, every request fails with the following error:

{
    "errors": [
        {
            "status": 404,
            "code": "unsupported-model",
            "title": "Unsupported model type",
            "detail": "Model machineGroup doesn't exist"
        }
    ]
}

Environment (please complete the following information):

  • ZenStack version: 2.22.2
  • Database type: mssql
  • Node.js/Bun version: node 22
  • Package manager: npm

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