diff --git a/.changeset/light-clocks-rhyme.md b/.changeset/light-clocks-rhyme.md index 5e4e6ddd9cb..07eb405508c 100644 --- a/.changeset/light-clocks-rhyme.md +++ b/.changeset/light-clocks-rhyme.md @@ -1,5 +1,5 @@ --- -'@graphql-codegen/client-preset': minor +'@graphql-codegen/client-preset': patch --- -The \_\_typename should not be added to the root node of a subscription when using addTypenameSelectionDocumentTransform with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field) +Omit `__typename` from being added on the root node of a subscription when using `addTypenameSelectionDocumentTransform` with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field)