🔧 Added graphQL bits

This commit is contained in:
2025-09-23 18:14:35 -04:00
parent 136a7f494f
commit a9bfa479c4
6 changed files with 607 additions and 199 deletions

View File

@@ -1,24 +1,59 @@
import { gql } from "graphql-tag";
export const typeDefs = gql`
type Query {
comic(id: ID!): Comic
comics(limit: Int = 10): [Comic]
}
type Query {
comic(id: ID!): Comic
comics(limit: Int = 10): [Comic]
wantedComics(limit: Int = 25, offset: Int = 0): ComicPage!
}
type Comic {
id: ID!
title: String
volume: Int
issueNumber: String
publicationDate: String
coverUrl: String
creators: [Creator]
source: String
}
type Comic {
id: ID!
title: String!
volume: Int
issueNumber: String!
publicationDate: String
variant: String
format: String
creators: [Creator!]!
arcs: [String!]
coverUrl: String
filePath: String
pageCount: Int
tags: [String!]
source: String
type Creator {
name: String
role: String
}
confidence: ConfidenceMap
provenance: ProvenanceMap
}
type Creator {
name: String!
role: String!
}
type ConfidenceMap {
title: Float
volume: Float
issueNumber: Float
publicationDate: Float
creators: Float
variant: Float
format: Float
}
type ProvenanceMap {
title: String
volume: String
issueNumber: String
publicationDate: String
creators: String
variant: String
format: String
}
type ComicPage {
total: Int!
results: [Comic!]!
}
`;