added book details, update, delete. fixes

This commit is contained in:
lnn0q 2025-06-01 19:37:13 +03:00
parent d1da980501
commit b5738c610d
12 changed files with 290 additions and 16 deletions

View file

@ -16,6 +16,8 @@ type Mutation {
login(input: LoginInput!): Session!
logout: Void
bookCreate(input: BookCreateInput!): Book!
bookUpdate(input: BookUpdateInput!): Book!
bookDelete(id: ID!): Void
bookChapterCreate(input: BookChapterCreateInput!): BookChapter!
bookChapterUpdate(input: BookChapterUpdateInput!): BookChapter!
bookChapterDelete(id: ID!): Book!
@ -97,7 +99,7 @@ type Book {
personalRating: RatingType!
}
input BookUpdate {
input BookUpdateInput {
id: ID!
title: String
description: String