Skip to content

Commit

Permalink
feat: Add monster image to GraphQL API (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessOne1917 authored Oct 8, 2022
1 parent 9aed0ee commit 05b6eaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/graphql/typeDefs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ type Monster {
type: MonsterType!
wisdom: Int!
xp: Int!
image: String
}

type ProficiencyReferenceOption {
Expand Down
2 changes: 1 addition & 1 deletion src/models/monster/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit 05b6eaa

Please sign in to comment.