Skip to content

Client extensions cannot support Fluent API #24653

@casey-chow

Description

@casey-chow

Problem

Putting this together because it's been mentioned a bunch of places but without the root issue being logged, see prisma/extension-read-replicas#12 and the Accelerate limitations page.

Without using hacks like the internal dataPath parameter, Client Extensions cannot support remap usage of the fluent API.

Suggested solution

Create an API that provides the full fluent query. I'd propose injecting dataPath in with Prisma.getExtensionContext.

Alternatives

Another option would be to fully deprecate the fluent API, or remap the query off of the fluent API for client extensions.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions