Skip to content

Commit

Permalink
v6.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jan 17, 2024
1 parent 4b0c9c5 commit ac166fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co

## Unreleased

## v6.31.1

### Fixed

- Fix `@limit` directive definition

## v6.31.0

### Added
Expand Down
5 changes: 3 additions & 2 deletions docs/6/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -1971,12 +1971,13 @@ directive @like(
```graphql
"""
Allow clients to specify the maximum number of results to return.
Allow clients to specify the maximum number of results to return when used on an argument,
or statically limits them when used on a field.

This directive does not influence the number of results the resolver queries internally,
but limits how much of it is returned to clients.
"""
directive @limit on ARGUMENT_DEFINITION
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
```
Place this on any argument to a field that returns a list of results.
Expand Down
5 changes: 3 additions & 2 deletions docs/master/api-reference/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -1971,12 +1971,13 @@ directive @like(
```graphql
"""
Allow clients to specify the maximum number of results to return.
Allow clients to specify the maximum number of results to return when used on an argument,
or statically limits them when used on a field.

This directive does not influence the number of results the resolver queries internally,
but limits how much of it is returned to clients.
"""
directive @limit on ARGUMENT_DEFINITION
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
```
Place this on any argument to a field that returns a list of results.
Expand Down
5 changes: 3 additions & 2 deletions src/Schema/Directives/LimitDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ public static function definition(): string
{
return /* @lang GraphQL */ <<<'GRAPHQL'
"""
Allow clients to specify the maximum number of results to return.
Allow clients to specify the maximum number of results to return when used on an argument,
or statically limits them when used on a field.
This directive does not influence the number of results the resolver queries internally,
but limits how much of it is returned to clients.
"""
directive @limit on ARGUMENT_DEFINITION
directive @limit on ARGUMENT_DEFINITION | FIELD_DEFINITION
GRAPHQL;
}

Expand Down

0 comments on commit ac166fc

Please sign in to comment.