Currently there is no GraphQL API to retrieve groups. The retrieve groups only possible with retrieve boards. Also, there is not pagination support for groups when retrieving groups using boards.
Is there any limit on number of groups for each board?
Regards,
Prashanth