Skip to content

Commit

Permalink
fix(client-preset): forward skipTypeNameForRoot option (#10136)
Browse files Browse the repository at this point in the history
* add typescript-operations skipTypeNameForRoot to forwarded configs

* add changeset

* Apply suggestions from code review

---------

Co-authored-by: Saihajpreet Singh <[email protected]>
  • Loading branch information
wxt2005 and saihaj authored Oct 7, 2024
1 parent effc3bc commit 3fd4486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-years-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/client-preset': minor
---

foward skipTypeNameForRoot to client-preset
1 change: 1 addition & 0 deletions packages/presets/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const preset: Types.OutputPreset<ClientPresetConfig> = {
nonOptionalTypename: options.config.nonOptionalTypename,
avoidOptionals: options.config.avoidOptionals,
documentMode: options.config.documentMode,
skipTypeNameForRoot: options.config.skipTypeNameForRoot,
};

const visitor = new ClientSideBaseVisitor(options.schemaAst!, [], options.config, options.config);
Expand Down

0 comments on commit 3fd4486

Please sign in to comment.