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