From 6c6b6f2df88a3a37b437a25320dab5590f033316 Mon Sep 17 00:00:00 2001 From: Aaron Buxbaum Date: Mon, 26 Dec 2022 14:47:49 -0500 Subject: [PATCH] Add globalGqlIdentifierName to the types (#8718) * Add globalGqlIdentifierName to the types * Update packages/utils/plugins-helpers/src/types.ts * Update packages/utils/plugins-helpers/src/types.ts * Create violet-tools-fetch.md Co-authored-by: Saihajpreet Singh --- .changeset/violet-tools-fetch.md | 5 +++++ packages/utils/plugins-helpers/src/types.ts | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/violet-tools-fetch.md diff --git a/.changeset/violet-tools-fetch.md b/.changeset/violet-tools-fetch.md new file mode 100644 index 00000000000..c73115551c3 --- /dev/null +++ b/.changeset/violet-tools-fetch.md @@ -0,0 +1,5 @@ +--- +"@graphql-codegen/plugin-helpers": patch +--- + +Add `globalGqlIdentifierName` to the types diff --git a/packages/utils/plugins-helpers/src/types.ts b/packages/utils/plugins-helpers/src/types.ts index 9deb94c5bab..b8088de8811 100644 --- a/packages/utils/plugins-helpers/src/types.ts +++ b/packages/utils/plugins-helpers/src/types.ts @@ -510,6 +510,10 @@ export namespace Types { * @description Overrides the name of the default GraphQL name identifier. */ globalIdentifier?: string; + /** + * @description Allows to use a global identifier instead of a module import. + */ + globalGqlIdentifierName?: string | string[]; }; /** * @description Specifies scripts to run when events are happening in the codegen core.