Skip to content

Commit effd875

Browse files
authored
Revert "feat: reduce code output of client preset" (#10182)
* Revert "feat: reduce code output of client preset (#10073)" This reverts commit 8471a18. * Add changeset
1 parent 0a5f79b commit effd875

File tree

25 files changed

+18225
-7
lines changed

25 files changed

+18225
-7
lines changed

Diff for: .changeset/shy-berries-shop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-codegen/client-preset': patch
3+
---
4+
5+
Revert slimmer client preset output

Diff for: dev-test/gql-tag-operations-masking/gql/graphql.ts

+89
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,95 @@ export type Scalars = {
1818
Url: { input: any; output: any };
1919
};
2020

21+
export type Meta = {
22+
__typename?: 'Meta';
23+
count?: Maybe<Scalars['Int']['output']>;
24+
};
25+
26+
export type Mutation = {
27+
__typename?: 'Mutation';
28+
createTweet?: Maybe<Tweet>;
29+
deleteTweet?: Maybe<Tweet>;
30+
markTweetRead?: Maybe<Scalars['Boolean']['output']>;
31+
};
32+
33+
export type MutationCreateTweetArgs = {
34+
body?: InputMaybe<Scalars['String']['input']>;
35+
};
36+
37+
export type MutationDeleteTweetArgs = {
38+
id: Scalars['ID']['input'];
39+
};
40+
41+
export type MutationMarkTweetReadArgs = {
42+
id: Scalars['ID']['input'];
43+
};
44+
45+
export type Notification = {
46+
__typename?: 'Notification';
47+
date?: Maybe<Scalars['Date']['output']>;
48+
id?: Maybe<Scalars['ID']['output']>;
49+
type?: Maybe<Scalars['String']['output']>;
50+
};
51+
52+
export type Query = {
53+
__typename?: 'Query';
54+
Notifications?: Maybe<Array<Maybe<Notification>>>;
55+
NotificationsMeta?: Maybe<Meta>;
56+
Tweet?: Maybe<Tweet>;
57+
Tweets?: Maybe<Array<Tweet>>;
58+
TweetsMeta?: Maybe<Meta>;
59+
User?: Maybe<User>;
60+
};
61+
62+
export type QueryNotificationsArgs = {
63+
limit?: InputMaybe<Scalars['Int']['input']>;
64+
};
65+
66+
export type QueryTweetArgs = {
67+
id: Scalars['ID']['input'];
68+
};
69+
70+
export type QueryTweetsArgs = {
71+
limit?: InputMaybe<Scalars['Int']['input']>;
72+
skip?: InputMaybe<Scalars['Int']['input']>;
73+
sort_field?: InputMaybe<Scalars['String']['input']>;
74+
sort_order?: InputMaybe<Scalars['String']['input']>;
75+
};
76+
77+
export type QueryUserArgs = {
78+
id: Scalars['ID']['input'];
79+
};
80+
81+
export type Stat = {
82+
__typename?: 'Stat';
83+
likes?: Maybe<Scalars['Int']['output']>;
84+
responses?: Maybe<Scalars['Int']['output']>;
85+
retweets?: Maybe<Scalars['Int']['output']>;
86+
views?: Maybe<Scalars['Int']['output']>;
87+
};
88+
89+
export type Tweet = {
90+
__typename?: 'Tweet';
91+
Stats?: Maybe<Stat>;
92+
author: User;
93+
body: Scalars['String']['output'];
94+
date?: Maybe<Scalars['Date']['output']>;
95+
id: Scalars['ID']['output'];
96+
};
97+
98+
export type User = {
99+
__typename?: 'User';
100+
avatar_url?: Maybe<Scalars['Url']['output']>;
101+
first_name?: Maybe<Scalars['String']['output']>;
102+
full_name?: Maybe<Scalars['String']['output']>;
103+
id: Scalars['ID']['output'];
104+
last_name?: Maybe<Scalars['String']['output']>;
105+
/** @deprecated Field no longer supported */
106+
name?: Maybe<Scalars['String']['output']>;
107+
username?: Maybe<Scalars['String']['output']>;
108+
};
109+
21110
export type TweetFragmentFragment = ({ __typename?: 'Tweet'; id: string; body: string } & {
22111
' $fragmentRefs'?: { TweetAuthorFragmentFragment: TweetAuthorFragmentFragment };
23112
}) & { ' $fragmentName'?: 'TweetFragmentFragment' };

Diff for: dev-test/gql-tag-operations-urql/gql/graphql.ts

+89
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,95 @@ export type Scalars = {
1818
Url: { input: any; output: any };
1919
};
2020

21+
export type Meta = {
22+
__typename?: 'Meta';
23+
count?: Maybe<Scalars['Int']['output']>;
24+
};
25+
26+
export type Mutation = {
27+
__typename?: 'Mutation';
28+
createTweet?: Maybe<Tweet>;
29+
deleteTweet?: Maybe<Tweet>;
30+
markTweetRead?: Maybe<Scalars['Boolean']['output']>;
31+
};
32+
33+
export type MutationCreateTweetArgs = {
34+
body?: InputMaybe<Scalars['String']['input']>;
35+
};
36+
37+
export type MutationDeleteTweetArgs = {
38+
id: Scalars['ID']['input'];
39+
};
40+
41+
export type MutationMarkTweetReadArgs = {
42+
id: Scalars['ID']['input'];
43+
};
44+
45+
export type Notification = {
46+
__typename?: 'Notification';
47+
date?: Maybe<Scalars['Date']['output']>;
48+
id?: Maybe<Scalars['ID']['output']>;
49+
type?: Maybe<Scalars['String']['output']>;
50+
};
51+
52+
export type Query = {
53+
__typename?: 'Query';
54+
Notifications?: Maybe<Array<Maybe<Notification>>>;
55+
NotificationsMeta?: Maybe<Meta>;
56+
Tweet?: Maybe<Tweet>;
57+
Tweets?: Maybe<Array<Maybe<Tweet>>>;
58+
TweetsMeta?: Maybe<Meta>;
59+
User?: Maybe<User>;
60+
};
61+
62+
export type QueryNotificationsArgs = {
63+
limit?: InputMaybe<Scalars['Int']['input']>;
64+
};
65+
66+
export type QueryTweetArgs = {
67+
id: Scalars['ID']['input'];
68+
};
69+
70+
export type QueryTweetsArgs = {
71+
limit?: InputMaybe<Scalars['Int']['input']>;
72+
skip?: InputMaybe<Scalars['Int']['input']>;
73+
sort_field?: InputMaybe<Scalars['String']['input']>;
74+
sort_order?: InputMaybe<Scalars['String']['input']>;
75+
};
76+
77+
export type QueryUserArgs = {
78+
id: Scalars['ID']['input'];
79+
};
80+
81+
export type Stat = {
82+
__typename?: 'Stat';
83+
likes?: Maybe<Scalars['Int']['output']>;
84+
responses?: Maybe<Scalars['Int']['output']>;
85+
retweets?: Maybe<Scalars['Int']['output']>;
86+
views?: Maybe<Scalars['Int']['output']>;
87+
};
88+
89+
export type Tweet = {
90+
__typename?: 'Tweet';
91+
Author?: Maybe<User>;
92+
Stats?: Maybe<Stat>;
93+
body?: Maybe<Scalars['String']['output']>;
94+
date?: Maybe<Scalars['Date']['output']>;
95+
id: Scalars['ID']['output'];
96+
};
97+
98+
export type User = {
99+
__typename?: 'User';
100+
avatar_url?: Maybe<Scalars['Url']['output']>;
101+
first_name?: Maybe<Scalars['String']['output']>;
102+
full_name?: Maybe<Scalars['String']['output']>;
103+
id: Scalars['ID']['output'];
104+
last_name?: Maybe<Scalars['String']['output']>;
105+
/** @deprecated Field no longer supported */
106+
name?: Maybe<Scalars['String']['output']>;
107+
username?: Maybe<Scalars['String']['output']>;
108+
};
109+
21110
export type FooQueryVariables = Exact<{ [key: string]: never }>;
22111

23112
export type FooQuery = { __typename?: 'Query'; Tweets?: Array<{ __typename?: 'Tweet'; id: string } | null> | null };

Diff for: dev-test/gql-tag-operations/gql/graphql.ts

+89
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,95 @@ export type Scalars = {
1818
Url: { input: any; output: any };
1919
};
2020

21+
export type Meta = {
22+
__typename?: 'Meta';
23+
count?: Maybe<Scalars['Int']['output']>;
24+
};
25+
26+
export type Mutation = {
27+
__typename?: 'Mutation';
28+
createTweet?: Maybe<Tweet>;
29+
deleteTweet?: Maybe<Tweet>;
30+
markTweetRead?: Maybe<Scalars['Boolean']['output']>;
31+
};
32+
33+
export type MutationCreateTweetArgs = {
34+
body?: InputMaybe<Scalars['String']['input']>;
35+
};
36+
37+
export type MutationDeleteTweetArgs = {
38+
id: Scalars['ID']['input'];
39+
};
40+
41+
export type MutationMarkTweetReadArgs = {
42+
id: Scalars['ID']['input'];
43+
};
44+
45+
export type Notification = {
46+
__typename?: 'Notification';
47+
date?: Maybe<Scalars['Date']['output']>;
48+
id?: Maybe<Scalars['ID']['output']>;
49+
type?: Maybe<Scalars['String']['output']>;
50+
};
51+
52+
export type Query = {
53+
__typename?: 'Query';
54+
Notifications?: Maybe<Array<Maybe<Notification>>>;
55+
NotificationsMeta?: Maybe<Meta>;
56+
Tweet?: Maybe<Tweet>;
57+
Tweets?: Maybe<Array<Maybe<Tweet>>>;
58+
TweetsMeta?: Maybe<Meta>;
59+
User?: Maybe<User>;
60+
};
61+
62+
export type QueryNotificationsArgs = {
63+
limit?: InputMaybe<Scalars['Int']['input']>;
64+
};
65+
66+
export type QueryTweetArgs = {
67+
id: Scalars['ID']['input'];
68+
};
69+
70+
export type QueryTweetsArgs = {
71+
limit?: InputMaybe<Scalars['Int']['input']>;
72+
skip?: InputMaybe<Scalars['Int']['input']>;
73+
sort_field?: InputMaybe<Scalars['String']['input']>;
74+
sort_order?: InputMaybe<Scalars['String']['input']>;
75+
};
76+
77+
export type QueryUserArgs = {
78+
id: Scalars['ID']['input'];
79+
};
80+
81+
export type Stat = {
82+
__typename?: 'Stat';
83+
likes?: Maybe<Scalars['Int']['output']>;
84+
responses?: Maybe<Scalars['Int']['output']>;
85+
retweets?: Maybe<Scalars['Int']['output']>;
86+
views?: Maybe<Scalars['Int']['output']>;
87+
};
88+
89+
export type Tweet = {
90+
__typename?: 'Tweet';
91+
Author?: Maybe<User>;
92+
Stats?: Maybe<Stat>;
93+
body?: Maybe<Scalars['String']['output']>;
94+
date?: Maybe<Scalars['Date']['output']>;
95+
id: Scalars['ID']['output'];
96+
};
97+
98+
export type User = {
99+
__typename?: 'User';
100+
avatar_url?: Maybe<Scalars['Url']['output']>;
101+
first_name?: Maybe<Scalars['String']['output']>;
102+
full_name?: Maybe<Scalars['String']['output']>;
103+
id: Scalars['ID']['output'];
104+
last_name?: Maybe<Scalars['String']['output']>;
105+
/** @deprecated Field no longer supported */
106+
name?: Maybe<Scalars['String']['output']>;
107+
username?: Maybe<Scalars['String']['output']>;
108+
};
109+
21110
export type FooQueryVariables = Exact<{ [key: string]: never }>;
22111

23112
export type FooQuery = { __typename?: 'Query'; Tweets?: Array<{ __typename?: 'Tweet'; id: string } | null> | null };

Diff for: dev-test/gql-tag-operations/graphql/graphql.ts

+89
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,95 @@ export type Scalars = {
1818
Url: { input: any; output: any };
1919
};
2020

21+
export type Meta = {
22+
__typename?: 'Meta';
23+
count?: Maybe<Scalars['Int']['output']>;
24+
};
25+
26+
export type Mutation = {
27+
__typename?: 'Mutation';
28+
createTweet?: Maybe<Tweet>;
29+
deleteTweet?: Maybe<Tweet>;
30+
markTweetRead?: Maybe<Scalars['Boolean']['output']>;
31+
};
32+
33+
export type MutationCreateTweetArgs = {
34+
body?: InputMaybe<Scalars['String']['input']>;
35+
};
36+
37+
export type MutationDeleteTweetArgs = {
38+
id: Scalars['ID']['input'];
39+
};
40+
41+
export type MutationMarkTweetReadArgs = {
42+
id: Scalars['ID']['input'];
43+
};
44+
45+
export type Notification = {
46+
__typename?: 'Notification';
47+
date?: Maybe<Scalars['Date']['output']>;
48+
id?: Maybe<Scalars['ID']['output']>;
49+
type?: Maybe<Scalars['String']['output']>;
50+
};
51+
52+
export type Query = {
53+
__typename?: 'Query';
54+
Notifications?: Maybe<Array<Maybe<Notification>>>;
55+
NotificationsMeta?: Maybe<Meta>;
56+
Tweet?: Maybe<Tweet>;
57+
Tweets?: Maybe<Array<Maybe<Tweet>>>;
58+
TweetsMeta?: Maybe<Meta>;
59+
User?: Maybe<User>;
60+
};
61+
62+
export type QueryNotificationsArgs = {
63+
limit?: InputMaybe<Scalars['Int']['input']>;
64+
};
65+
66+
export type QueryTweetArgs = {
67+
id: Scalars['ID']['input'];
68+
};
69+
70+
export type QueryTweetsArgs = {
71+
limit?: InputMaybe<Scalars['Int']['input']>;
72+
skip?: InputMaybe<Scalars['Int']['input']>;
73+
sort_field?: InputMaybe<Scalars['String']['input']>;
74+
sort_order?: InputMaybe<Scalars['String']['input']>;
75+
};
76+
77+
export type QueryUserArgs = {
78+
id: Scalars['ID']['input'];
79+
};
80+
81+
export type Stat = {
82+
__typename?: 'Stat';
83+
likes?: Maybe<Scalars['Int']['output']>;
84+
responses?: Maybe<Scalars['Int']['output']>;
85+
retweets?: Maybe<Scalars['Int']['output']>;
86+
views?: Maybe<Scalars['Int']['output']>;
87+
};
88+
89+
export type Tweet = {
90+
__typename?: 'Tweet';
91+
Author?: Maybe<User>;
92+
Stats?: Maybe<Stat>;
93+
body?: Maybe<Scalars['String']['output']>;
94+
date?: Maybe<Scalars['Date']['output']>;
95+
id: Scalars['ID']['output'];
96+
};
97+
98+
export type User = {
99+
__typename?: 'User';
100+
avatar_url?: Maybe<Scalars['Url']['output']>;
101+
first_name?: Maybe<Scalars['String']['output']>;
102+
full_name?: Maybe<Scalars['String']['output']>;
103+
id: Scalars['ID']['output'];
104+
last_name?: Maybe<Scalars['String']['output']>;
105+
/** @deprecated Field no longer supported */
106+
name?: Maybe<Scalars['String']['output']>;
107+
username?: Maybe<Scalars['String']['output']>;
108+
};
109+
21110
export type FooQueryVariables = Exact<{ [key: string]: never }>;
22111

23112
export type FooQuery = { __typename?: 'Query'; Tweets?: Array<{ __typename?: 'Tweet'; id: string } | null> | null };

0 commit comments

Comments
 (0)