Nexus-plugin-prisma: Can't return associated records of deleted record

Created on 9 Aug 2020  路  3Comments  路  Source: graphql-nexus/nexus-plugin-prisma

Nexus Report

{
  "node": "v12.18.3",
  "os": {
    "platform": "linux",
    "release": "5.8.5"
  },
  "nexus": "^0.27.0-next.5",
  "plugins": [
    "nexus-plugin-prisma"
  ],
  "otherDependencies": {},
  "devDependencies": {},
  "hasAppModule": true,
  "packageManager": "npm",
  "errorsWhileGatheringReport": {
    "gettingLayout": null,
    "gettingPluginManifests": null
  }
}

Description

When deleting a record which has associated records nexus fails to return the deleted data if you request the associated record.

The actual problem is that there is a request for the data

SELECT `test`.`Round`.`id`, `test`.`Round`.`studentId` FROM `test`.`Round` WHERE `test`.`Round`.`id` = ? LIMIT ? OFFSET ?

after the data had been deleted.

Repro

The README.md should contain all necessary steps.
https://github.com/mohe2015/nexus-bug1/

Btw this is a blocker for me so if there is a workaround I would love to hear about it.

typbug

Most helpful comment

Running into this as a blocker as well.

All 3 comments

Seems fixed or I'm not depending on it any more.

Actually still a problem - I'm just not using it any more and am using a workaround.

Running into this as a blocker as well.

Was this page helpful?
0 / 5 - 0 ratings