File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/web/docs/src/content/gateway/other-features/security Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const gatewayConfig = defineConfig({
39
39
* Cost based on the operation type.
40
40
* By default, mutations have a cost of 10, queries and subscriptions have a cost of 0.
41
41
*/
42
- operationCost : operationType => (operationType === ' mutation' ? 10 : 0 ),
42
+ operationTypeCost : operationType => (operationType === ' mutation' ? 10 : 0 ),
43
43
/**
44
44
* Cost based on the field.
45
45
* It is called for each field in the operation, and overrides the `@cost` directive.
@@ -62,7 +62,7 @@ export const gatewayConfig = defineConfig({
62
62
63
63
When a query is planned by the gateway,
64
64
65
- - For each operation, the ` operationCost ` function is called with the operation type. (By default
65
+ - For each operation, the ` operationTypeCost ` function is called with the operation type. (By default
66
66
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 ` )
You can’t perform that action at this time.
0 commit comments