paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

Incorrect return type for deleteOne graphql #208

Closed btodorce closed 3 years ago

btodorce commented 3 years ago

When using pal.js cli to autogenerate frontend .graphql with generator set as nexus, the return type for the deleteOne mutation is always set to be the field id instead of the graphql fragment for the model that the mutaion is removing Example: mutation deleteOneUser($where: UserWhereUniqueInput!) { deleteOneUser(where: $where) { id } } This brakes mutations where the field [id] isnt present in the underlying model