Fix mutation to support versionNumber as input
-
Add a version Number at the mutation
createBookVersion
so user can define the new version -
Check if that version already exists because the user may select an already existing vesion by mistake
if exists throw an error saying
There is already that version
- Remove the autoincrement for the book Version and allow user to set his own version Number .