Skip to content

Commit 581ab04

Browse files
committed
Update README
1 parent 3c37d91 commit 581ab04

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/estimators/directive/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ input Filter {
6464

6565
The 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
7071
import {createComplexityDirective} from 'graphql-query-complexity';
@@ -78,4 +79,4 @@ const schema = new GraphQLSchema({
7879
]
7980
// ... other config
8081
});
81-
```
82+
```

src/estimators/fieldExtensions/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The function signature is the same as for the main estimator which lets you reus
6464
type ComplexityEstimatorArgs = {
6565
type: GraphQLCompositeType,
6666
field: GraphQLField<any, any>,
67+
node: FieldNode,
6768
args: {[key: string]: any},
6869
childComplexity: number
6970
}

0 commit comments

Comments
 (0)