File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/plugins/other/visitor-plugin-common/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @graphql-codegen/visitor-plugin-common " : patch
3
+ ---
4
+
5
+ docs: Swapping rootValueType with directiveContextTypes for correctness
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export interface RawResolversConfig extends RawConfig {
153
153
* rootValueType: ./my-types#MyRootValue
154
154
* ```
155
155
*/
156
- directiveContextTypes ?: Array < string > ;
156
+ rootValueType ?: string ;
157
157
/**
158
158
* @description Use this to set a custom type for a specific field `context` decorated by a directive.
159
159
* It will only affect the targeted resolvers.
@@ -172,7 +172,7 @@ export interface RawResolversConfig extends RawConfig {
172
172
* ```
173
173
*
174
174
*/
175
- rootValueType ?: string ;
175
+ directiveContextTypes ?: Array < string > ;
176
176
/**
177
177
* @description Adds a suffix to the imported names to prevent name clashes.
178
178
*
You can’t perform that action at this time.
0 commit comments