Skip to content

Commit

Permalink
add imageref to content api
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Mar 4, 2024
1 parent 9da7c66 commit 27080ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/content.gql.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const contentGqlSchema = /* GraphQL */ `
title: String
body: String
image: String
imageRef: String
categories: String
tags: String
}
Expand All @@ -42,6 +43,7 @@ export const contentGqlSchema = /* GraphQL */ `
title: String
body: String
image: String
imageRef: String
categories: String
tags: String
}
Expand Down
1 change: 1 addition & 0 deletions src/content/content.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ it('should normalize invalid composition', () => {
title: '',
body: '',
image: '',
imageRef: '',
categories: '',
tags: '',
},
Expand Down
1 change: 1 addition & 0 deletions src/content/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const createEmptyModule = (): ContentModule => ({
image: '',
categories: '',
tags: '',
imageRef: '',
})

export const createEmptyComposition = (): ViewComposition => ({
Expand Down
1 change: 1 addition & 0 deletions src/content/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type ContentModule = {
title: string
body: string
image: string
imageRef: string
categories: string
tags: string
}

0 comments on commit 27080ac

Please sign in to comment.