Skip to content

Commit ff08245

Browse files
committed
refactor: add ImgWithCaption ton images
1 parent c618d37 commit ff08245

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

gatsby-node.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ exports.createSchemaCustomization = ({ actions, schema }) => {
5959
image: File @fileByRelativePath
6060
caption: String
6161
}
62+
type ImagesAndVideos {
63+
images: [ImgWithCaption]
64+
}
6265
type Diagram {
6366
title: String
6467
images: [ImgWithCaption]
@@ -97,6 +100,7 @@ exports.createSchemaCustomization = ({ actions, schema }) => {
97100
parental_line: MarkdownRemark @link(by: "frontmatter.cell_line_id")
98101
funding_text: String @md
99102
footer_text: String @md
103+
images_and_videos: ImagesAndVideos
100104
genomic_characterization: MarkdownRemarkFrontmatterGenomic_characterization
101105
stem_cell_characteristics: StemCellCharacteristics
102106
catalogs: [NavBarDropdownItem]
@@ -125,8 +129,6 @@ exports.createResolvers = ({ createResolvers }) => {
125129
createResolvers({
126130
ImgWithCaption: imageUrlResolver,
127131
RnaSeqRow: imageUrlResolver,
128-
// Gatsby-inferred types for image lists not covered by ImgWithCaption
129-
MarkdownRemarkFrontmatterImages_and_videosImages: imageUrlResolver,
130132
MarkdownRemarkFrontmatterEditing_designDiagramsImages: imageUrlResolver,
131133
Diagram: imageUrlResolver,
132134
});

0 commit comments

Comments
 (0)