Skip to content

7.0.0

Compare
Choose a tag to compare
@mfn mfn released this 03 Apr 20:36
897a162

Breaking changes

  • Signature of \Rebing\GraphQL\Support\Privacy::validate changed, now it accepts both query/mutation arguments and the query/mutation context.
    Update your existing privacy policies this way:
    -public function validate(array $queryArgs): bool
    +public function validate(array $queryArgs, $queryContext = null): bool

Added

  • Ability to pass query/mutation context to the field privacy handler (both closure and class) #727 / torunar