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 {
6464
6565The multipliers can be combined . Configured multipliers that don 't have a value or `NULL ` are ignored .
6666
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 :
6869
6970```typescript
7071import {createComplexityDirective } from 'graphql -query -complexity ';
@@ -78,4 +79,4 @@ const schema = new GraphQLSchema({
7879 ]
7980 // ... other config
8081});
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
6464type ComplexityEstimatorArgs = {
6565 type: GraphQLCompositeType ,
6666 field: GraphQLField <any , any >,
67+ node: FieldNode ,
6768 args: {[key : string ]: any },
6869 childComplexity: number
6970}
You can’t perform that action at this time.
0 commit comments