public static
boolean|mixed
|
#
check_field_permissions( mixed $source, array $args, WPGraphQL\AppContext $context, GraphQL\Type\Definition\ResolveInfo $info, string $field_resolver, string $type_name, GraphQL\Type\Definition\FieldDefinition $field_key, $field )
Check field permissions when resolving.
Check field permissions when resolving.
This takes into account auth params defined in the Schema
Parameters
- $source
- The source passed down the Resolve Tree
- $args
- The args for the field
- $context
- The AppContext passed down the ResolveTree
- $info
- The ResolveInfo passed down the ResolveTree
- $field_resolver
- $type_name The name of the type the fields belong to
- $type_name
- $field_key The name of the field
- $field_key
- $field The Field Definition for the resolving field
- $field
Returns
boolean|mixed
|