*/ public function directives(): array { return [ 'builder' => [ 'method' => PlaylistBuilder::class.'@index', ], ...parent::directives(), ]; } /** * The arguments of the type. * * @return array */ public function arguments(): array { return [ 'search: String @search', ...parent::arguments(), 'orderBy: _ @orderBy(columnsEnum: "PlaylistColumnsOrderable", relations: [ {relation: "likeAggregate", columns: ["value"]}, {relation: "viewAggregate", columns: ["value"]} ] )', ]; } /** * The base return type of the query. * * @return PlaylistType */ public function baseType(): PlaylistType { return new PlaylistType(); } }