dotansimha / dotansimha/graphql-code-generator-community
near-operation-file-preset doesn't support documentTransforms yet
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
`near-operation-file-preset` lacks support for the new `documentTransforms` config
see: https://the-guild.dev/graphql/codegen/docs/advanced/document-transform
Not too familiar with the internals of this stuff but I think it's just a matter of passing it through here?
```diff
diff --git a/packages/presets/near-operation-file/src/index.ts b/packages/presets/near-operation-file/src/index.ts
index c9dd7729a..4afd35f95 100644
--- a/packages/presets/near-operation-file/src/index.ts
+++ b/packages/presets/near-operation-file/src/index.ts
@@ -345,6 +345,7 @@ export const preset: Types.OutputPreset = {
artifacts.push({
filename,
documents: [combinedSource],
+ documentTransforms: options.documentTransforms,
plugins,
pluginMap,
config,
```
if that's the right solution, I'm happy to throw this in a pr
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in packages/presets/near-operation-file/src/index.ts, around the preset's artifact construction, and compare the documentTransforms configuration with the document-transform documentation. Confirm that the preset passes the option through correctly, then verify that near-operation-file supports documentTransforms without changing other artifact options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100