collection->map(fn (Video $video) => new VideoResource($video, $this->query))->all(); } }