collection->map(fn (VideoScript $script) => new ScriptResource($script, $this->query))->all(); } }