v2.5.12
plugins
resolve #152
adding a new option to onDelete
method to custom what fields you want to return
prismaDelete.onDelete({
model: 'User',
where: { id: 1 },
deleteParent: true, // if true will also delete user record default false
// new option
returnFields: {id: true, name: true} // you can select what you need to return from parent record
});