🐳 Added graphql deps
This commit is contained in:
24
models/graphql/typedef.ts
Normal file
24
models/graphql/typedef.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { gql } from "graphql-tag";
|
||||
|
||||
export const typeDefs = gql`
|
||||
type Query {
|
||||
comic(id: ID!): Comic
|
||||
comics(limit: Int = 10): [Comic]
|
||||
}
|
||||
|
||||
type Comic {
|
||||
id: ID!
|
||||
title: String
|
||||
volume: Int
|
||||
issueNumber: String
|
||||
publicationDate: String
|
||||
coverUrl: String
|
||||
creators: [Creator]
|
||||
source: String
|
||||
}
|
||||
|
||||
type Creator {
|
||||
name: String
|
||||
role: String
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user