Skip to content

dedupeFragments was removed, causing duplicate fragments... any alternatives? #10551

@ItaiYosephi

Description

@ItaiYosephi

Which packages are impacted by your issue?

@graphql-codegen/cli, @graphql-codegen/typed-document-node

Describe the bug

dedupeFragments options was removed here, causing fragments to appear twice on the document node (doc.loc?.source.body)

Image

Your Example Website or App

https://codesandbox.io/p/devbox/inspiring-burnell-l7snd2?workspaceId=ws_3d3S1CmTc7BCJtbnRB7BQC

Steps to Reproduce the Bug or Issue

  1. go to https://codesandbox.io/p/devbox/inspiring-burnell-l7snd2?workspaceId=ws_3d3S1CmTc7BCJtbnRB7BQC
  2. run npm run codegen && npm run print
  3. printing the doc body shows twice the same fragment

Expected behavior

fragments should be deduped

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • NodeJS: [e.g. 18.5.0]
  • graphql version: [e.g. 16.3.0]
  • @graphql-codegen/* version(s): [e.g. 2.6.2]

Codegen Config File

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions