Lyrical-GraphQL icon indicating copy to clipboard operation
Lyrical-GraphQL copied to clipboard

deleteSong mutation removing wrong id

Open yano1978 opened this issue 3 years ago • 0 comments

On mutations.js, deleteSong's mutation is using findOneAndRemove method which removes the wrong ID. I would suggest to switch to findByIdAndRemove, otherwise on the apollo client mutation one is forced to use the _id workaround.

image

yano1978 avatar Aug 31 '22 08:08 yano1978