Skip to content

Use filters for bulk update #178

Answered by LastDragon-ru
jaulz asked this question in Q&A
Jul 25, 2024 · 1 comments · 3 replies
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:

// Lighthouse's enhancer is slower because it processes all nested fields
// of the input value, and then we need to recreate Argument from the
// plain value. So we are skipping it if possible.
$lighthouse = false;

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