From 05b6eaa6ac6aace9266ea3ce13aaccdf6c6b4615 Mon Sep 17 00:00:00 2001 From: abias1122 Date: Sat, 8 Oct 2022 02:57:26 -0400 Subject: [PATCH] feat: Add monster image to GraphQL API (#337) --- src/graphql/typeDefs.graphql | 1 + src/models/monster/types.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/graphql/typeDefs.graphql b/src/graphql/typeDefs.graphql index 9fb1f5e7..53ff39ad 100644 --- a/src/graphql/typeDefs.graphql +++ b/src/graphql/typeDefs.graphql @@ -686,6 +686,7 @@ type Monster { type: MonsterType! wisdom: Int! xp: Int! + image: String } type ProficiencyReferenceOption { diff --git a/src/models/monster/types.d.ts b/src/models/monster/types.d.ts index f5030a0c..cc322421 100644 --- a/src/models/monster/types.d.ts +++ b/src/models/monster/types.d.ts @@ -131,7 +131,7 @@ export type Monster = { hit_dice: string; hit_points: number; hit_points_roll: string; - image: string; + image?: string; index: string; intelligence: number; languages: string[];