Skip to content

Commit

Permalink
Merge pull request #92 from steniowagner/feat/movie-details-genres-param
Browse files Browse the repository at this point in the history
feat: add the language to the movie-details/genres field
  • Loading branch information
steniowagner authored Dec 4, 2023
2 parents b7125a1 + 5652281 commit aff6459
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
15 changes: 14 additions & 1 deletion graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,20 @@
{
"name": "genres",
"description": null,
"args": [],
"args": [
{
"name": "language",
"description": null,
"type": {
"kind": "ENUM",
"name": "ISO6391Language",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
Expand Down
7 changes: 6 additions & 1 deletion src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ export type Movie = {
};


export type MovieGenresArgs = {
language?: InputMaybe<Iso6391Language>;
};


export type MovieImagesArgs = {
id: Scalars['Int']['input'];
language?: InputMaybe<Iso6391Language>;
Expand Down Expand Up @@ -1291,7 +1296,7 @@ export type MovieResolvers<ContextType = any, ParentType extends ResolversParent
budget?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
cast?: Resolver<Array<ResolversTypes['MediaCast']>, ParentType, ContextType>;
crew?: Resolver<Array<ResolversTypes['MediaCrew']>, ParentType, ContextType>;
genres?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType>;
genres?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType, Partial<MovieGenresArgs>>;
homepage?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
id?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
images?: Resolver<Array<ResolversTypes['String']>, ParentType, ContextType, RequireFields<MovieImagesArgs, 'id'>>;
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/type-defs/schemas/tmdb/movie.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default `#graphql
backdropPath: String
belongsToCollection: MovieBelongsToCollection
budget: Float
genres: [String!]!
genres(language: ISO6391Language): [String!]!
homepage: String
id: Int!
imdbId: String
Expand Down

0 comments on commit aff6459

Please sign in to comment.