diff --git a/src/index.tsx b/src/index.tsx index 131d235..c20a7ad 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -30,6 +30,8 @@ export type Scalars = { Float: { input: number; output: number }; /** Date with time (isoformat) */ DateTime: { input: any; output: any }; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). */ + JSON: { input: any; output: any }; }; export type AggregateInputGql = { @@ -1245,6 +1247,7 @@ export type QueryGetUsernamesArgs = { }; export type QueryGetVideoArgs = { + debuggingJson?: InputMaybe; videoId: Scalars["Int"]["input"]; }; diff --git a/src/schema.gql b/src/schema.gql index 2379794..f8be364 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -30,7 +30,7 @@ type Query { filters: VideoFilterInput = null ): VideoHistoryGQL! getUserTags: [TagGQL!]! - getVideo(videoId: Int!): VideoGQL! + getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! } @@ -417,6 +417,14 @@ type TagGQL { group: String } +""" +The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf). +""" +scalar JSON + @specifiedBy( + url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf" + ) + type Mutation { createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! setLoggerLevel(path: String!, level: String!): Boolean!