Skip to content

Commit

Permalink
Merge pull request #498 from NDLANO/contextid-as-id
Browse files Browse the repository at this point in the history
Add contextid to programme
  • Loading branch information
gunnarvelle authored Oct 25, 2024
2 parents c7f61de + 9601cb9 commit 0d0ad52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/resolvers/programmeResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { nodeToTaxonomyEntity } from "../utils/apiHelpers";
const nodeToProgramme = (node: Node, language: string): GQLProgrammePage => {
return {
id: node.id,
contextId: node.contextId,
title: {
title: node.name,
language: language,
Expand Down
1 change: 1 addition & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ export const typeDefs = gql`
type ProgrammePage {
id: String!
contextId: String
title: Title!
url: String
contentUri: String
Expand Down
2 changes: 2 additions & 0 deletions src/types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,7 @@ export type GQLPodcastSeriesWithEpisodes = GQLPodcastSeriesBase & {
export type GQLProgrammePage = {
__typename?: 'ProgrammePage';
contentUri?: Maybe<Scalars['String']>;
contextId?: Maybe<Scalars['String']>;
desktopImage?: Maybe<GQLMetaImage>;
grades?: Maybe<Array<GQLGrade>>;
id: Scalars['String'];
Expand Down Expand Up @@ -4024,6 +4025,7 @@ export type GQLPodcastSeriesWithEpisodesResolvers<ContextType = any, ParentType

export type GQLProgrammePageResolvers<ContextType = any, ParentType extends GQLResolversParentTypes['ProgrammePage'] = GQLResolversParentTypes['ProgrammePage']> = {
contentUri?: Resolver<Maybe<GQLResolversTypes['String']>, ParentType, ContextType>;
contextId?: Resolver<Maybe<GQLResolversTypes['String']>, ParentType, ContextType>;
desktopImage?: Resolver<Maybe<GQLResolversTypes['MetaImage']>, ParentType, ContextType>;
grades?: Resolver<Maybe<Array<GQLResolversTypes['Grade']>>, ParentType, ContextType>;
id?: Resolver<GQLResolversTypes['String'], ParentType, ContextType>;
Expand Down

0 comments on commit 0d0ad52

Please # to comment.