collection->map( fn (ExternalResource $resource) => new ExternalResourceResource($resource, $this->query) )->all(); } }