collection->map(fn (User $user) => new UserResource($user, $this->query))->all(); } }