File tree 25 files changed +198
-47
lines changed
gql-tag-operations-masking/gql
gql-tag-operations-urql/gql
persisted-documents/src/gql
persisted-documents-string-mode/src/gql
apollo-client-defer/src/gql
apollo-client-swc-plugin/src/gql
tanstack-react-query/src/gql
typescript-graphql-request/src/gql
apollo-composable/src/gql
plugins/typescript/gql-tag-operations/src
25 files changed +198
-47
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @graphql-codegen/gql-tag-operations " : patch
3
+ ---
4
+
5
+ Have gql-tag-operations generate the type for document registry
Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment TweetFragment on Tweet {\n id\n body\n ...TweetAuthorFragment\n }\n' : typeof types . TweetFragmentFragmentDoc ;
18
+ '\n fragment TweetAuthorFragment on Tweet {\n id\n author {\n id\n username\n }\n }\n' : typeof types . TweetAuthorFragmentFragmentDoc ;
19
+ '\n fragment TweetsFragment on Query {\n Tweets {\n id\n ...TweetFragment\n }\n }\n' : typeof types . TweetsFragmentFragmentDoc ;
20
+ '\n query TweetAppQuery {\n ...TweetsFragment\n }\n' : typeof types . TweetAppQueryDocument ;
21
+ } ;
22
+ const documents : Documents = {
17
23
'\n fragment TweetFragment on Tweet {\n id\n body\n ...TweetAuthorFragment\n }\n' :
18
24
types . TweetFragmentFragmentDoc ,
19
25
'\n fragment TweetAuthorFragment on Tweet {\n id\n author {\n id\n username\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query Foo {\n Tweets {\n id\n }\n }\n' : typeof types . FooDocument ;
18
+ '\n fragment Lel on Tweet {\n id\n body\n }\n' : typeof types . LelFragmentDoc ;
19
+ '\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : typeof types . BarDocument ;
20
+ } ;
21
+ const documents : Documents = {
17
22
'\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
18
23
'\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
19
24
'\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : types . BarDocument ,
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query Foo {\n Tweets {\n id\n }\n }\n' : typeof types . FooDocument ;
18
+ '\n fragment Lel on Tweet {\n id\n body\n }\n' : typeof types . LelFragmentDoc ;
19
+ '\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : typeof types . BarDocument ;
20
+ } ;
21
+ const documents : Documents = {
17
22
'\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
18
23
'\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
19
24
'\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : types . BarDocument ,
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query Foo {\n Tweets {\n id\n }\n }\n' : typeof types . FooDocument ;
18
+ '\n fragment Lel on Tweet {\n id\n body\n }\n' : typeof types . LelFragmentDoc ;
19
+ '\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : typeof types . BarDocument ;
20
+ } ;
21
+ const documents : Documents = {
17
22
'\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
18
23
'\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
19
24
'\n query Bar {\n Tweets {\n ...Lel\n }\n }\n' : types . BarDocument ,
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ import * as types from './graphql';
12
12
* Therefore it is highly recommended to use the babel or swc plugin for production.
13
13
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
14
14
*/
15
- const documents = {
15
+ type Documents = {
16
+ '\n query HelloQuery {\n hello\n }\n' : typeof types . HelloQueryDocument ;
17
+ } ;
18
+ const documents : Documents = {
16
19
'\n query HelloQuery {\n hello\n }\n' : types . HelloQueryDocument ,
17
20
} ;
18
21
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query HelloQuery {\n hello\n }\n' : typeof types . HelloQueryDocument ;
18
+ } ;
19
+ const documents : Documents = {
17
20
'\n query HelloQuery {\n hello\n }\n' : types . HelloQueryDocument ,
18
21
} ;
19
22
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment SlowFieldFragment on Query {\n slowField(waitFor: 5000)\n }\n' : typeof types . SlowFieldFragmentFragmentDoc ;
18
+ '\n query SlowAndFastFieldWithDefer {\n fastField\n ...SlowFieldFragment @defer\n\n ... @defer {\n inlinedSlowField: slowField(waitFor: 5000)\n }\n }\n' : typeof types . SlowAndFastFieldWithDeferDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n fragment SlowFieldFragment on Query {\n slowField(waitFor: 5000)\n }\n' : types . SlowFieldFragmentFragmentDoc ,
18
22
'\n query SlowAndFastFieldWithDefer {\n fastField\n ...SlowFieldFragment @defer\n\n ... @defer {\n inlinedSlowField: slowField(waitFor: 5000)\n }\n }\n' :
19
23
types . SlowAndFastFieldWithDeferDocument ,
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
18
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
18
22
types . AllFilmsWithVariablesQueryDocument ,
19
23
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
18
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
18
22
types . AllFilmsWithVariablesQueryDocument ,
19
23
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
18
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
18
22
types . AllFilmsWithVariablesQueryDocument ,
19
23
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
18
22
types . FilmItemFragmentDoc ,
19
23
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ import * as types from './graphql';
12
12
* Therefore it is highly recommended to use the babel or swc plugin for production.
13
13
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
14
14
*/
15
- const documents = {
15
+ type Documents = {
16
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ } ;
19
+ const documents : Documents = {
16
20
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
17
21
types . AllFilmsWithVariablesQueryDocument ,
18
22
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ import * as types from './graphql';
12
12
* Therefore it is highly recommended to use the babel or swc plugin for production.
13
13
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
14
14
*/
15
- const documents = {
15
+ type Documents = {
16
+ '\n query allFilmsWithVariablesQuery199($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQuery199Document ;
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ } ;
19
+ const documents : Documents = {
16
20
'\n query allFilmsWithVariablesQuery199($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
17
21
types . AllFilmsWithVariablesQuery199Document ,
18
22
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query AllPeopleQuery {\n allPeople(first: 5) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' : typeof types . AllPeopleQueryDocument ;
18
+ '\n query AllPeopleWithVariablesQuery($first: Int!) {\n allPeople(first: $first) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' : typeof types . AllPeopleWithVariablesQueryDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query AllPeopleQuery {\n allPeople(first: 5) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' :
18
22
types . AllPeopleQueryDocument ,
19
23
'\n query AllPeopleWithVariablesQuery($first: Int!) {\n allPeople(first: $first) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ import * as types from './graphql';
12
12
* Therefore it is highly recommended to use the babel or swc plugin for production.
13
13
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
14
14
*/
15
- const documents = {
15
+ type Documents = {
16
+ '\n query AllPeopleQuery {\n allPeople(first: 5) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' : typeof types . AllPeopleQueryDocument ;
17
+ '\n query AllPeopleWithVariablesQuery($first: Int!) {\n allPeople(first: $first) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' : typeof types . AllPeopleWithVariablesQueryDocument ;
18
+ } ;
19
+ const documents : Documents = {
16
20
'\n query AllPeopleQuery {\n allPeople(first: 5) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' :
17
21
types . AllPeopleQueryDocument ,
18
22
'\n query AllPeopleWithVariablesQuery($first: Int!) {\n allPeople(first: $first) {\n edges {\n node {\n name\n homeworld {\n name\n }\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
18
22
types . FilmItemFragmentDoc ,
19
23
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
18
22
types . FilmItemFragmentDoc ,
19
23
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
18
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' : typeof types . AllFilmsWithVariablesQueryDocument ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
18
22
types . FilmItemFragmentDoc ,
19
23
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n ' : typeof types . AllFilmsWithVariablesQueryDocument ;
18
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n ' :
18
22
types . AllFilmsWithVariablesQueryDocument ,
19
23
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-
13
13
* Therefore it is highly recommended to use the babel or swc plugin for production.
14
14
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
15
15
*/
16
- const documents = {
16
+ type Documents = {
17
+ '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n ' : typeof types . AllFilmsWithVariablesQueryDocument ;
18
+ '\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' : typeof types . FilmItemFragmentDoc ;
19
+ } ;
20
+ const documents : Documents = {
17
21
'\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n ' :
18
22
types . AllFilmsWithVariablesQueryDocument ,
19
23
'\n fragment FilmItem on Film {\n id\n title\n releaseDate\n producers\n }\n' :
You can’t perform that action at this time.
0 commit comments