response = Gate::inspect('create', WatchHistory::class))->allowed(); } /** * The base return type of the query. */ public function baseType(): WatchHistoryType { return new WatchHistoryType(); } /** * @param array $args */ public function resolve($root, array $args, $context, ResolveInfo $resolveInfo): mixed { return App::make(WatchResolver::class) ->store($root, $args); } }