collection->map(fn (Playlist $playlist): PlaylistResource => new PlaylistResource($playlist, $this->query))->all(); } }