getPendingCommunityInvitations query should be called.
The query result contains pagination and it is possible to change the sorting order and key.
Supports cursor-based (after, before) or limit-based (first, last) pagination.
The following arguments can be used in the query:
CommunityInvatation object, the full description can be found here.