File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
web/docs/src/content/gateway/other-features/security Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-hive/cli ' : patch
3
+ ---
4
+
5
+ fix fallback when hive.json is used but does not provide the requested value
Original file line number Diff line number Diff line change @@ -151,11 +151,9 @@ export default abstract class BaseCommand<T extends typeof Command> extends Comm
151
151
} else if ( envName && env [ envName ] !== undefined ) {
152
152
value = env [ envName ] as TArgs [ keyof TArgs ] as NonNullable < GetConfigurationValueType < TKey > > ;
153
153
} else {
154
- const configValue = this . _userConfig ! . get ( key ) as NonNullable <
155
- GetConfigurationValueType < TKey >
156
- > ;
154
+ const configValue = this . _userConfig ! . get ( key ) as GetConfigurationValueType < TKey > ;
157
155
158
- if ( configValue !== undefined ) {
156
+ if ( configValue != null ) {
159
157
value = configValue ;
160
158
} else if ( defaultValue ) {
161
159
value = defaultValue ;
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ export const gatewayConfig = defineConfig({
62
62
63
63
When a query is planned by the gateway,
64
64
65
- - For each operation, the ` operationTypeCost ` function is called with the operation type. (By default
66
- only mutations have a cost ` 10 ` )
65
+ - For each operation, the ` operationTypeCost ` function is called with the operation type. (By
66
+ default only mutations have a cost ` 10 ` )
67
67
- For each field in the operation, the ` fieldCost ` function is called with the field node. (By
68
68
default fields have a cost of ` 0 ` )
69
69
- For each type in the operation, the ` typeCost ` function is called with the type. (By default
You can’t perform that action at this time.
0 commit comments