added resolvers, updated model, updated navbar
This commit is contained in:
parent
a8375b99c2
commit
1d40d7e15f
23 changed files with 439 additions and 301 deletions
|
|
@ -3,7 +3,11 @@ scalar Void
|
|||
type Query {
|
||||
identity: Identity!
|
||||
userOne(id: ID!): User!
|
||||
workingMany(input: WorkingManyInput!): WorkingManyOutput!
|
||||
bookOne(id: ID!): Book!
|
||||
bookMany(input: BookManyInput!): BookManyOutput!
|
||||
bookChapterOne(id: ID!): BookChapter!
|
||||
bookChapterMany(input: BookChapterManyInput!): BookChapterManyOutput!
|
||||
reviewMany(input: ReviewManyInput!): ReviewManyOutput!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
|
|
@ -48,14 +52,8 @@ input PaginationFilterInput {
|
|||
size: Int
|
||||
}
|
||||
|
||||
input WorkingManyInput {
|
||||
input BookManyInput {
|
||||
filter: PaginationFilterInput!
|
||||
type: WorkingType!
|
||||
}
|
||||
|
||||
enum WorkingType {
|
||||
book
|
||||
notepad
|
||||
}
|
||||
|
||||
enum WorkingProgressStatus {
|
||||
|
|
@ -64,33 +62,23 @@ enum WorkingProgressStatus {
|
|||
complete
|
||||
}
|
||||
|
||||
type WorkingManyOutput {
|
||||
items: [Working!]!
|
||||
type BookManyOutput {
|
||||
items: [Book!]!
|
||||
total: Int!
|
||||
}
|
||||
|
||||
type Working {
|
||||
type Book {
|
||||
id: ID!
|
||||
title: String!
|
||||
description: String!
|
||||
author: User!
|
||||
createdAt: String!
|
||||
updatedAt: String!
|
||||
type: WorkingType!
|
||||
book: Book
|
||||
notepad: Notepad
|
||||
progressStatus: WorkingProgressStatus!
|
||||
ratingTotal: Int!
|
||||
reviewsTotal: Int!
|
||||
}
|
||||
|
||||
type Book {
|
||||
id: ID!
|
||||
workingId: ID!
|
||||
createdAt: String!
|
||||
updatedAt: String!
|
||||
wordsTotal: Int!
|
||||
chaptersTotal: Int!
|
||||
ratingTotal: Int!
|
||||
reviewsTotal: Int!
|
||||
}
|
||||
|
||||
type BookChapter {
|
||||
|
|
@ -104,6 +92,7 @@ type BookChapter {
|
|||
}
|
||||
|
||||
input BookChapterManyInput {
|
||||
bookId: String!
|
||||
filter: PaginationFilterInput!
|
||||
}
|
||||
|
||||
|
|
@ -112,10 +101,6 @@ type BookChapterManyOutput {
|
|||
total: Int!
|
||||
}
|
||||
|
||||
type Notepad {
|
||||
id: ID!
|
||||
}
|
||||
|
||||
type Review {
|
||||
id: ID!
|
||||
author: User!
|
||||
|
|
@ -124,6 +109,8 @@ type Review {
|
|||
}
|
||||
|
||||
input ReviewManyInput {
|
||||
bookId: String
|
||||
bookChapterId: String
|
||||
filter: PaginationFilterInput!
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue