Skip to content
Discussion options

You must be logged in to vote

Both directives just implements Nuwave\Lighthouse\Support\Contracts\ArgBuilderDirective and Nuwave\Lighthouse\Scout\ScoutBuilderDirective. The ResolveInfo::enhanceBuilder() doing all other stuff. See https://lighthouse-php.com/6/custom-directives/input-value-directives.html#argbuilderdirective

If you have access to Argument/ArgumentSet you can try something like:

https://github.com/LastDragon-ru/lara-asp/blob/a25feab2d7fcb0fd3aded206aa26784ae1b94ca1/packages/graphql/src/Stream/Directives/Directive.php#L492-L513

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jaulz
Comment options

@LastDragon-ru
Comment options

Answer selected by LastDragon-ru
@jaulz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants