collection->map(fn (Role $role) => new RoleResource($role, $this->query))->all(); } }