Skip to content

Commit a42fcbf

Browse files
Tohakersaihaj
andauthored
docs: Swapping rootValueType with directiveContextTypes for correctness (#7856)
* docs: Swapping rootValueType with directiveContextTypes for correctness * Create pink-tips-grin.md Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
1 parent 8b10f22 commit a42fcbf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎.changeset/pink-tips-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-codegen/visitor-plugin-common": patch
3+
---
4+
5+
docs: Swapping rootValueType with directiveContextTypes for correctness

‎packages/plugins/other/visitor-plugin-common/src/base-resolvers-visitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export interface RawResolversConfig extends RawConfig {
153153
* rootValueType: ./my-types#MyRootValue
154154
* ```
155155
*/
156-
directiveContextTypes?: Array<string>;
156+
rootValueType?: string;
157157
/**
158158
* @description Use this to set a custom type for a specific field `context` decorated by a directive.
159159
* It will only affect the targeted resolvers.
@@ -172,7 +172,7 @@ export interface RawResolversConfig extends RawConfig {
172172
* ```
173173
*
174174
*/
175-
rootValueType?: string;
175+
directiveContextTypes?: Array<string>;
176176
/**
177177
* @description Adds a suffix to the imported names to prevent name clashes.
178178
*

0 commit comments

Comments
 (0)