File tree Expand file tree Collapse file tree 25 files changed +198
-47
lines changed
gql-tag-operations-masking/gql
gql-tag-operations-urql/gql
persisted-documents-string-mode/src/gql
persisted-documents/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 Expand file tree Collapse file tree 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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1723 '\n fragment TweetFragment on Tweet {\n id\n body\n ...TweetAuthorFragment\n }\n' :
1824 types . TweetFragmentFragmentDoc ,
1925 '\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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1722 '\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
1823 '\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
1924 '\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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1722 '\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
1823 '\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
1924 '\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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1722 '\n query Foo {\n Tweets {\n id\n }\n }\n' : types . FooDocument ,
1823 '\n fragment Lel on Tweet {\n id\n body\n }\n' : types . LelFragmentDoc ,
1924 '\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';
1212 * Therefore it is highly recommended to use the babel or swc plugin for production.
1313 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1414 */
15- const documents = {
15+ type Documents = {
16+ '\n query HelloQuery {\n hello\n }\n' : typeof types . HelloQueryDocument ;
17+ } ;
18+ const documents : Documents = {
1619 '\n query HelloQuery {\n hello\n }\n' : types . HelloQueryDocument ,
1720} ;
1821
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
16- const documents = {
16+ type Documents = {
17+ '\n query HelloQuery {\n hello\n }\n' : typeof types . HelloQueryDocument ;
18+ } ;
19+ const documents : Documents = {
1720 '\n query HelloQuery {\n hello\n }\n' : types . HelloQueryDocument ,
1821} ;
1922
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1721 '\n fragment SlowFieldFragment on Query {\n slowField(waitFor: 5000)\n }\n' : types . SlowFieldFragmentFragmentDoc ,
1822 '\n query SlowAndFastFieldWithDefer {\n fastField\n ...SlowFieldFragment @defer\n\n ... @defer {\n inlinedSlowField: slowField(waitFor: 5000)\n }\n }\n' :
1923 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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1721 '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
1822 types . AllFilmsWithVariablesQueryDocument ,
1923 '\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/
1313 * Therefore it is highly recommended to use the babel or swc plugin for production.
1414 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
1515 */
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 = {
1721 '\n query allFilmsWithVariablesQuery($first: Int!) {\n allFilms(first: $first) {\n edges {\n node {\n ...FilmItem\n }\n }\n }\n }\n' :
1822 types . AllFilmsWithVariablesQueryDocument ,
1923 '\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