Skip to content

Commit c18c2e1

Browse files
fix: remove unused GraphQL mutation variable types from sdk.ts and update client codegen plugins (#12)
1 parent b54d4ad commit c18c2e1

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

playground-nuxt/app/graphql/sdk.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,6 @@
55
/* prettier-ignore */
66
import type * as Types from '#graphql/client';
77

8-
export type CreateUserMutationVariables = Types.Exact<{
9-
input: Types.CreateUserInput;
10-
}>;
11-
12-
13-
export type CreateUserMutation = { __typename?: 'Mutation', createUser: { __typename?: 'User', id: string, name: string, email: string, createdAt: Date } };
14-
15-
export type UpdateUserMutationVariables = Types.Exact<{
16-
id: Types.Scalars['ID']['input'];
17-
input: Types.UpdateUserInput;
18-
}>;
19-
20-
21-
export type UpdateUserMutation = { __typename?: 'Mutation', updateUser: { __typename?: 'User', id: string, name: string, email: string, createdAt: Date } };
22-
23-
export type DeleteUserMutationVariables = Types.Exact<{
24-
id: Types.Scalars['ID']['input'];
25-
}>;
26-
27-
28-
export type DeleteUserMutation = { __typename?: 'Mutation', deleteUser: boolean };
29-
30-
export type GetUsersQueryVariables = Types.Exact<{ [key: string]: never; }>;
31-
32-
33-
export type GetUsersQuery = { __typename?: 'Query', users: Array<{ __typename?: 'User', id: string, name: string, email: string, createdAt: Date }> };
34-
35-
export type GetUserQueryVariables = Types.Exact<{
36-
id: Types.Scalars['ID']['input'];
37-
}>;
38-
39-
40-
export type GetUserQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, name: string, email: string, createdAt: Date } | null };
41-
428

439
export const CreateUserDocument = /*#__PURE__*/ `
4410
mutation CreateUser($input: CreateUserInput!) {

src/utils/client-codegen.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,10 @@ export async function generateClientTypes(
170170
},
171171
plugins: [
172172
{ pluginContent: {} },
173-
{ typescriptOperations: {} },
174173
{ typescriptGenericSdk: { rawRequest: false } },
175174
],
176175
pluginMap: {
177176
pluginContent: { plugin: pluginContent },
178-
typescriptOperations: { plugin: typescriptOperations },
179177
typescriptGenericSdk: { plugin: typescriptGenericSdk },
180178
},
181179
})

0 commit comments

Comments
 (0)