Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$queryRaw availability isn't derived from the DMMF #8189

Closed
dpetrick opened this issue Jul 9, 2021 · 0 comments · Fixed by #8728
Closed

$queryRaw availability isn't derived from the DMMF #8189

dpetrick opened this issue Jul 9, 2021 · 0 comments · Fixed by #8728
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/tech A technical change. team/client Issue for team Client. tech/typescript Issue for tech TypeScript.

Comments

@dpetrick
Copy link
Contributor

dpetrick commented Jul 9, 2021

Blocks/depends on: prisma/prisma-engines#2087

If raw operations are not available for a connector, they are not rendered in the DMMF:

// ...
"mappings": {
    "modelOperations": [
      {
        "model": "Parent",
        // ...
      },
      {
        "model": "Child",
        // ...
      }
    ],
    "otherOperations": {
      "read": [],
      "write": []
    }
  }
// ...

However, the generated client still allows $queryRaw without complaining. This should be based on the available queries of the engine.

This is the object for a connector with raw query availability:

  "otherOperations": {
      "read": [],
      "write": [
        "executeRaw",
        "queryRaw"
      ]
    }
@pantharshit00 pantharshit00 added kind/tech A technical change. team/client Issue for team Client. labels Jul 11, 2021
@matthewmueller matthewmueller added this to the 2.28.0 milestone Jul 14, 2021
@dpetrick dpetrick modified the milestones: 2.28.0, 2.29.0 Jul 28, 2021
@millsp millsp added the tech/typescript Issue for tech TypeScript. label Aug 10, 2021
@matthewmueller matthewmueller modified the milestones: 2.29.0, 2.30.0 Aug 11, 2021
@millsp millsp added the bug/2-confirmed Bug has been reproduced and confirmed. label Aug 16, 2021
@Jolg42 Jolg42 modified the milestones: 2.30.0, 2.31.0 / 3.0.x Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/tech A technical change. team/client Issue for team Client. tech/typescript Issue for tech TypeScript.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants