diff --git a/.changeset/@graphql-codegen_cli-10496-dependencies.md b/.changeset/@graphql-codegen_cli-10496-dependencies.md
new file mode 100644
index 00000000000..1da26fe3256
--- /dev/null
+++ b/.changeset/@graphql-codegen_cli-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/cli": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/client-preset@^5.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/client-preset/v/5.2.0) (from `^5.1.2`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_client-preset-10496-dependencies.md b/.changeset/@graphql-codegen_client-preset-10496-dependencies.md
new file mode 100644
index 00000000000..aa76a06c453
--- /dev/null
+++ b/.changeset/@graphql-codegen_client-preset-10496-dependencies.md
@@ -0,0 +1,10 @@
+---
+"@graphql-codegen/client-preset": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/typed-document-node@^6.1.3` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typed-document-node/v/6.1.3) (from `^6.1.2`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/typescript@^5.0.5` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.5) (from `^5.0.4`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/typescript-operations@^5.0.5` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript-operations/v/5.0.5) (from `^5.0.4`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/gql-tag-operations@5.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/gql-tag-operations/v/5.1.0) (from `5.0.5`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@^6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `^6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md b/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md
new file mode 100644
index 00000000000..8b556536d8a
--- /dev/null
+++ b/.changeset/@graphql-codegen_gql-tag-operations-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/gql-tag-operations": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md b/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md
new file mode 100644
index 00000000000..5251ebebfdb
--- /dev/null
+++ b/.changeset/@graphql-codegen_graphql-modules-preset-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/graphql-modules-preset": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md b/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md
new file mode 100644
index 00000000000..ffc6eb27d68
--- /dev/null
+++ b/.changeset/@graphql-codegen_typed-document-node-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/typed-document-node": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_typescript-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-10496-dependencies.md
new file mode 100644
index 00000000000..7f1cbc7a52e
--- /dev/null
+++ b/.changeset/@graphql-codegen_typescript-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/typescript": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md
new file mode 100644
index 00000000000..e26048ceb9c
--- /dev/null
+++ b/.changeset/@graphql-codegen_typescript-document-nodes-10496-dependencies.md
@@ -0,0 +1,6 @@
+---
+"@graphql-codegen/typescript-document-nodes": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md
new file mode 100644
index 00000000000..f987ce2292c
--- /dev/null
+++ b/.changeset/@graphql-codegen_typescript-operations-10496-dependencies.md
@@ -0,0 +1,7 @@
+---
+"@graphql-codegen/typescript-operations": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/typescript@^5.0.5` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.5) (from `^5.0.4`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md b/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md
new file mode 100644
index 00000000000..90c2beaf989
--- /dev/null
+++ b/.changeset/@graphql-codegen_typescript-resolvers-10496-dependencies.md
@@ -0,0 +1,7 @@
+---
+"@graphql-codegen/typescript-resolvers": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/typescript@^5.0.5` ↗︎](https://www.npmjs.com/package/@graphql-codegen/typescript/v/5.0.5) (from `^5.0.4`, in `dependencies`)
+ - Updated dependency [`@graphql-codegen/visitor-plugin-common@6.2.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/visitor-plugin-common/v/6.2.0) (from `6.1.2`, in `dependencies`)
diff --git a/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md b/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md
new file mode 100644
index 00000000000..7e6a61d5d42
--- /dev/null
+++ b/.changeset/@graphql-codegen_visitor-plugin-common-10496-dependencies.md
@@ -0,0 +1,5 @@
+---
+"@graphql-codegen/visitor-plugin-common": patch
+---
+dependencies updates:
+ - Updated dependency [`@graphql-codegen/plugin-helpers@^6.1.0` ↗︎](https://www.npmjs.com/package/@graphql-codegen/plugin-helpers/v/6.1.0) (from `^6.0.0`, in `dependencies`)
diff --git a/.changeset/curly-trees-lead.md b/.changeset/curly-trees-lead.md
new file mode 100644
index 00000000000..e6aab78bdca
--- /dev/null
+++ b/.changeset/curly-trees-lead.md
@@ -0,0 +1,5 @@
+---
+'@graphql-codegen/typescript-operations': major
+---
+
+BREAKING CHANGE: typescript-operations plugin now generates enum if it is used in operation.
diff --git a/.changeset/khaki-turtles-juggle.md b/.changeset/khaki-turtles-juggle.md
new file mode 100644
index 00000000000..bb0e0614a6a
--- /dev/null
+++ b/.changeset/khaki-turtles-juggle.md
@@ -0,0 +1,6 @@
+---
+'@graphql-codegen/typescript-operations': major
+'@graphql-codegen/typescript': minor
+---
+
+The `typescript-operations` plugin no longer generates InputMaybe and Scalars types; it now uses native Typescript types instead.
diff --git a/.changeset/lovely-sloths-kiss.md b/.changeset/lovely-sloths-kiss.md
new file mode 100644
index 00000000000..3005f29b02b
--- /dev/null
+++ b/.changeset/lovely-sloths-kiss.md
@@ -0,0 +1,7 @@
+---
+'@graphql-codegen/typescript-operations': major
+'@graphql-codegen/typescript': major
+'@graphql-codegen/client-preset': major
+---
+
+BREAKING CHANGE: `typescript` plugin no longer generates `Exact` utility type. Instead, `typescript-operations` generates said utility type for every file it creates. This is because it is used _only_ for `Variables`, so we only need to generate it once for every generated operation file.
diff --git a/.changeset/proud-cougars-hear.md b/.changeset/proud-cougars-hear.md
new file mode 100644
index 00000000000..f02764b32ff
--- /dev/null
+++ b/.changeset/proud-cougars-hear.md
@@ -0,0 +1,5 @@
+---
+'@graphql-codegen/visitor-plugin-common': major
+---
+
+BREAKING CHANGE: `@graphql-codegen/visitor-plugin-common`'s `base-types-visitor` no longer has `getNodeComment` or `buildEnumValuesBlock` method.
diff --git a/.changeset/silly-kiwis-sip.md b/.changeset/silly-kiwis-sip.md
new file mode 100644
index 00000000000..31295846e7e
--- /dev/null
+++ b/.changeset/silly-kiwis-sip.md
@@ -0,0 +1,5 @@
+---
+'@graphql-codegen/typescript': patch
+---
+
+Extract utilities from base-type-visitor to be shared with other plugins later: convertSchemaEnumToDeclarationBlockString, getNodeComment
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1584793fa41..caa2bf6d938 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -4,9 +4,11 @@ on:
push:
branches:
- master
+ - master-next # FIXME:eddeee888 Remove once done
pull_request:
branches:
- master
+ - master-next # FIXME:eddeee888 Remove once released
env:
NODE_OPTIONS: '--max_old_space_size=4096'
diff --git a/README.md b/README.md
index 823b7e7ece5..64d27e9e5db 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+FIXME:eddeee888
+
diff --git a/dev-test/githunt/typed-document-nodes.ts b/dev-test/githunt/typed-document-nodes.ts
index 5d66b82c399..1de574e175e 100644
--- a/dev-test/githunt/typed-document-nodes.ts
+++ b/dev-test/githunt/typed-document-nodes.ts
@@ -1,11 +1,11 @@
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -169,8 +169,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -185,9 +197,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -253,8 +265,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -281,7 +293,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -302,8 +314,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -324,7 +336,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.avoidOptionals.ts b/dev-test/githunt/types.avoidOptionals.ts
index fae92412f8c..0d19fae050d 100644
--- a/dev-test/githunt/types.avoidOptionals.ts
+++ b/dev-test/githunt/types.avoidOptionals.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -168,8 +168,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -184,9 +196,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit: InputMaybe;
- offset: InputMaybe;
+ repoFullName: string;
+ limit: number | null;
+ offset: number | null;
}>;
export type CommentQuery = {
@@ -252,8 +264,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset: InputMaybe;
- limit: InputMaybe;
+ offset: number | null;
+ limit: number | null;
}>;
export type FeedQuery = {
@@ -280,7 +292,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -301,8 +313,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -323,7 +335,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.d.ts b/dev-test/githunt/types.d.ts
index a3214fa9248..cf2dc2f2014 100644
--- a/dev-test/githunt/types.d.ts
+++ b/dev-test/githunt/types.d.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -163,8 +163,20 @@ export type Vote = {
/** The type of vote to record, when submitting a vote */
export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -179,9 +191,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -247,8 +259,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -275,7 +287,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -296,8 +308,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -318,7 +330,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.enumsAsTypes.ts b/dev-test/githunt/types.enumsAsTypes.ts
index a3214fa9248..cf2dc2f2014 100644
--- a/dev-test/githunt/types.enumsAsTypes.ts
+++ b/dev-test/githunt/types.enumsAsTypes.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -163,8 +163,20 @@ export type Vote = {
/** The type of vote to record, when submitting a vote */
export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -179,9 +191,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -247,8 +259,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -275,7 +287,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -296,8 +308,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -318,7 +330,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.flatten.preResolveTypes.ts b/dev-test/githunt/types.flatten.preResolveTypes.ts
index 6a71babaaf6..d41d3fc8780 100644
--- a/dev-test/githunt/types.flatten.preResolveTypes.ts
+++ b/dev-test/githunt/types.flatten.preResolveTypes.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -168,8 +168,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -184,9 +196,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -225,8 +237,8 @@ export type CurrentUserForProfileQuery = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -253,7 +265,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -262,8 +274,8 @@ export type SubmitRepositoryMutation = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -278,7 +290,7 @@ export type SubmitCommentMutation = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.immutableTypes.ts b/dev-test/githunt/types.immutableTypes.ts
index df6b6d82851..42cf26e9d56 100644
--- a/dev-test/githunt/types.immutableTypes.ts
+++ b/dev-test/githunt/types.immutableTypes.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -168,8 +168,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -184,9 +196,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -252,8 +264,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -280,7 +292,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -301,8 +313,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -323,7 +335,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts b/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts
index cdda2177e51..e54e8ab576f 100644
--- a/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts
+++ b/dev-test/githunt/types.preResolveTypes.onlyOperationTypes.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -31,8 +31,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -47,9 +59,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -115,8 +127,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -143,7 +155,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -164,8 +176,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -186,7 +198,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.preResolveTypes.ts b/dev-test/githunt/types.preResolveTypes.ts
index 91e23917b8c..a6114cf2411 100644
--- a/dev-test/githunt/types.preResolveTypes.ts
+++ b/dev-test/githunt/types.preResolveTypes.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -168,8 +168,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -184,9 +196,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -252,8 +264,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -280,7 +292,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -301,8 +313,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -323,7 +335,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/githunt/types.ts b/dev-test/githunt/types.ts
index 91e23917b8c..a6114cf2411 100644
--- a/dev-test/githunt/types.ts
+++ b/dev-test/githunt/types.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -168,8 +168,20 @@ export enum VoteType {
Up = 'UP',
}
+/** A list of options for the sort order of the feed */
+export type FeedType =
+ /** Sort by a combination of freshness and score, using Reddit's algorithm */
+ | 'HOT'
+ /** Newest entries first */
+ | 'NEW'
+ /** Highest score entries first */
+ | 'TOP';
+
+/** The type of vote to record, when submitting a vote */
+export type VoteType = 'CANCEL' | 'DOWN' | 'UP';
+
export type OnCommentAddedSubscriptionVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
@@ -184,9 +196,9 @@ export type OnCommentAddedSubscription = {
};
export type CommentQueryVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- limit?: InputMaybe;
- offset?: InputMaybe;
+ repoFullName: string;
+ limit?: number | null;
+ offset?: number | null;
}>;
export type CommentQuery = {
@@ -252,8 +264,8 @@ export type FeedEntryFragment = {
export type FeedQueryVariables = Exact<{
type: FeedType;
- offset?: InputMaybe;
- limit?: InputMaybe;
+ offset?: number | null;
+ limit?: number | null;
}>;
export type FeedQuery = {
@@ -280,7 +292,7 @@ export type FeedQuery = {
};
export type SubmitRepositoryMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
@@ -301,8 +313,8 @@ export type RepoInfoFragment = {
};
export type SubmitCommentMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
- commentContent: Scalars['String']['input'];
+ repoFullName: string;
+ commentContent: string;
}>;
export type SubmitCommentMutation = {
@@ -323,7 +335,7 @@ export type VoteButtonsFragment = {
};
export type VoteMutationVariables = Exact<{
- repoFullName: Scalars['String']['input'];
+ repoFullName: string;
type: VoteType;
}>;
diff --git a/dev-test/gql-tag-operations-masking/gql/graphql.ts b/dev-test/gql-tag-operations-masking/gql/graphql.ts
index e6727b1c25f..58cd48f92f0 100644
--- a/dev-test/gql-tag-operations-masking/gql/graphql.ts
+++ b/dev-test/gql-tag-operations-masking/gql/graphql.ts
@@ -2,11 +2,11 @@
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe = T | null;
export type InputMaybe = T | null | undefined;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
diff --git a/dev-test/gql-tag-operations-urql/gql/graphql.ts b/dev-test/gql-tag-operations-urql/gql/graphql.ts
index 9b8455d245e..d15b6d5b108 100644
--- a/dev-test/gql-tag-operations-urql/gql/graphql.ts
+++ b/dev-test/gql-tag-operations-urql/gql/graphql.ts
@@ -2,11 +2,11 @@
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe = T | null;
export type InputMaybe = T | null | undefined;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
diff --git a/dev-test/gql-tag-operations/gql/graphql.ts b/dev-test/gql-tag-operations/gql/graphql.ts
index 9b8455d245e..d15b6d5b108 100644
--- a/dev-test/gql-tag-operations/gql/graphql.ts
+++ b/dev-test/gql-tag-operations/gql/graphql.ts
@@ -2,11 +2,11 @@
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe = T | null;
export type InputMaybe = T | null | undefined;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
diff --git a/dev-test/gql-tag-operations/graphql/graphql.ts b/dev-test/gql-tag-operations/graphql/graphql.ts
index 9b8455d245e..d15b6d5b108 100644
--- a/dev-test/gql-tag-operations/graphql/graphql.ts
+++ b/dev-test/gql-tag-operations/graphql/graphql.ts
@@ -2,11 +2,11 @@
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe = T | null;
export type InputMaybe = T | null | undefined;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
diff --git a/dev-test/modules/types.ts b/dev-test/modules/types.ts
index f516a7e65c6..45e27248ff8 100644
--- a/dev-test/modules/types.ts
+++ b/dev-test/modules/types.ts
@@ -1,7 +1,6 @@
import { GraphQLResolveInfo } from 'graphql';
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
diff --git a/dev-test/star-wars/types.avoidOptionals.ts b/dev-test/star-wars/types.avoidOptionals.ts
index 02b567a168e..96a96ea0b4d 100644
--- a/dev-test/star-wars/types.avoidOptionals.ts
+++ b/dev-test/star-wars/types.avoidOptionals.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
@@ -240,6 +240,15 @@ export type StarshipLengthArgs = {
unit?: InputMaybe;
};
+/** The episodes in the Star Wars trilogy */
+export type Episode =
+ /** Star Wars Episode V: The Empire Strikes Back, released in 1980. */
+ | 'EMPIRE'
+ /** Star Wars Episode VI: Return of the Jedi, released in 1983. */
+ | 'JEDI'
+ /** Star Wars Episode IV: A New Hope, released in 1977. */
+ | 'NEWHOPE';
+
export type CreateReviewForEpisodeMutationVariables = Exact<{
episode: Episode;
review: ReviewInput;
@@ -251,7 +260,7 @@ export type CreateReviewForEpisodeMutation = {
};
export type ExcludeQueryAlphaQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type ExcludeQueryAlphaQuery = {
@@ -260,7 +269,7 @@ export type ExcludeQueryAlphaQuery = {
};
export type ExcludeQueryBetaQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type ExcludeQueryBetaQuery = {
@@ -269,7 +278,7 @@ export type ExcludeQueryBetaQuery = {
};
export type HeroAndFriendsNamesQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroAndFriendsNamesQuery = {
@@ -299,7 +308,7 @@ export type HeroAppearsInQuery = {
};
export type HeroDetailsQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroDetailsQuery = {
@@ -317,7 +326,7 @@ type HeroDetails_Human_Fragment = { __typename?: 'Human'; height: number | null;
export type HeroDetailsFragment = HeroDetails_Droid_Fragment | HeroDetails_Human_Fragment;
export type HeroDetailsWithFragmentQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroDetailsWithFragmentQuery = {
@@ -329,7 +338,7 @@ export type HeroDetailsWithFragmentQuery = {
};
export type HeroNameQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroNameQuery = {
@@ -338,8 +347,8 @@ export type HeroNameQuery = {
};
export type HeroNameConditionalInclusionQueryVariables = Exact<{
- episode: InputMaybe;
- includeName: Scalars['Boolean']['input'];
+ episode: Episode | null;
+ includeName: boolean;
}>;
export type HeroNameConditionalInclusionQuery = {
@@ -348,8 +357,8 @@ export type HeroNameConditionalInclusionQuery = {
};
export type HeroNameConditionalExclusionQueryVariables = Exact<{
- episode: InputMaybe;
- skipName: Scalars['Boolean']['input'];
+ episode: Episode | null;
+ skipName: boolean;
}>;
export type HeroNameConditionalExclusionQuery = {
@@ -358,7 +367,7 @@ export type HeroNameConditionalExclusionQuery = {
};
export type HeroParentTypeDependentFieldQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroParentTypeDependentFieldQuery = {
@@ -382,7 +391,7 @@ export type HeroParentTypeDependentFieldQuery = {
};
export type HeroTypeDependentAliasedFieldQueryVariables = Exact<{
- episode: InputMaybe;
+ episode: Episode | null;
}>;
export type HeroTypeDependentAliasedFieldQuery = {
diff --git a/dev-test/star-wars/types.d.ts b/dev-test/star-wars/types.d.ts
index 74b3623a681..541a5ad81e6 100644
--- a/dev-test/star-wars/types.d.ts
+++ b/dev-test/star-wars/types.d.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe;
-export type Exact = { [K in keyof T]: T[K] };
export type MakeOptional = Omit & { [SubKey in K]?: Maybe };
export type MakeMaybe = Omit & { [SubKey in K]: Maybe };
export type MakeEmpty = { [_ in K]?: never };
export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
+type Exact = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
diff --git a/dev-test/star-wars/types.excludeQueryAlpha.ts b/dev-test/star-wars/types.excludeQueryAlpha.ts
index c74b2d6c85e..7ccbc0a787c 100644
--- a/dev-test/star-wars/types.excludeQueryAlpha.ts
+++ b/dev-test/star-wars/types.excludeQueryAlpha.ts
@@ -1,10 +1,10 @@
export type Maybe = T | null;
export type InputMaybe = Maybe