collection->map(fn (Group $group) => new GroupResource($group, $this->query))->all(); } }