Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add the language to the movie-details/genres field #92

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading