File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,8 @@ input Filter {
64
64
65
65
The multipliers can be combined . Configured multipliers that don 't have a value or `NULL ` are ignored .
66
66
67
- Code first approach can use the `createComplexityDirective ` function to generate directive definition :
67
+ If you are using the code first approach you can use the `createComplexityDirective ` function to create
68
+ the complexity directive :
68
69
69
70
```typescript
70
71
import {createComplexityDirective } from 'graphql -query -complexity ';
@@ -78,4 +79,4 @@ const schema = new GraphQLSchema({
78
79
]
79
80
// ... other config
80
81
});
81
- ```
82
+ ```
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ The function signature is the same as for the main estimator which lets you reus
64
64
type ComplexityEstimatorArgs = {
65
65
type: GraphQLCompositeType ,
66
66
field: GraphQLField <any , any >,
67
+ node: FieldNode ,
67
68
args: {[key : string ]: any },
68
69
childComplexity: number
69
70
}
You can’t perform that action at this time.
0 commit comments