File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co
99
1010## Unreleased
1111
12+ ## v6.31.1
13+
14+ ### Fixed
15+
16+ - Fix ` @limit ` directive definition
17+
1218## v6.31.0
1319
1420### Added
Original file line number Diff line number Diff line change @@ -1971,12 +1971,13 @@ directive @like(
19711971
19721972```graphql
19731973"""
1974- Allow clients to specify the maximum number of results to return .
1974+ Allow clients to specify the maximum number of results to return when used on an argument ,
1975+ or statically limits them when used on a field .
19751976
19761977This directive does not influence the number of results the resolver queries internally ,
19771978but limits how much of it is returned to clients .
19781979"""
1979- directive @limit on ARGUMENT_DEFINITION
1980+ directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
19801981```
19811982
19821983Place this on any argument to a field that returns a list of results.
Original file line number Diff line number Diff line change @@ -1971,12 +1971,13 @@ directive @like(
19711971
19721972```graphql
19731973"""
1974- Allow clients to specify the maximum number of results to return .
1974+ Allow clients to specify the maximum number of results to return when used on an argument ,
1975+ or statically limits them when used on a field .
19751976
19761977This directive does not influence the number of results the resolver queries internally ,
19771978but limits how much of it is returned to clients .
19781979"""
1979- directive @limit on ARGUMENT_DEFINITION
1980+ directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
19801981```
19811982
19821983Place this on any argument to a field that returns a list of results.
Original file line number Diff line number Diff line change @@ -24,12 +24,13 @@ public static function definition(): string
2424 {
2525 return /* @lang GraphQL */ <<<'GRAPHQL'
2626"""
27- Allow clients to specify the maximum number of results to return.
27+ Allow clients to specify the maximum number of results to return when used on an argument,
28+ or statically limits them when used on a field.
2829
2930This directive does not influence the number of results the resolver queries internally,
3031but limits how much of it is returned to clients.
3132"""
32- directive @limit on ARGUMENT_DEFINITION
33+ directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
3334GRAPHQL;
3435 }
3536
You can’t perform that action at this time.
0 commit comments