Skip to content

Commit

Permalink
Fix FieldResolver directive stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Nov 28, 2023
1 parent cd01eef commit 63ce62e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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.23.1

### Fixed

- Fix `FieldResolver` directive stubs

## v6.23.0

### Added
Expand Down
10 changes: 3 additions & 7 deletions src/Console/stubs/directives/field_resolver_methods.stub
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
/**
* Set a field resolver on the FieldValue.
* Returns a field resolver function.
*
* This must call $fieldValue->setResolver() before returning
* the FieldValue.
*
* @param \Nuwave\Lighthouse\Schema\Values\FieldValue $fieldValue
* @return \Nuwave\Lighthouse\Schema\Values\FieldValue
* @return callable(mixed, array<string, mixed>, \Nuwave\Lighthouse\Support\Contracts\GraphQLContext, \Nuwave\Lighthouse\Execution\ResolveInfo): mixed
*/
public function resolveField(FieldValue $fieldValue)
public function resolveField(FieldValue $fieldValue): callable
{
// TODO implement the field resolver
}

0 comments on commit 63ce62e

Please sign in to comment.