To retrieve the list of the users who have been invited to the given community and have not accepted the invitation yet, getCommunitySentInvitations 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.
Query results will be available only for the user associated with the community owner context or users associated with ADMINISTRATOR scope.
The following arguments can be used in the query:
ArgumentTypeDescriptionDefault
communityIdIDRequired. ID of the community to get the list of sent invitations.
afterCursorReturns results that come after the specified cursor. Should be used together with first parameter. Cannot be used if before is set.
beforeCursorReturns results that come before the specified cursor. Should be used together with last parameter. Cannot be used if after is set.
firstIntegerReturns up to the first N elements from the list. Required if after parameter is set. Cannot be used together with last.
lastIntegerReturns up to the first N elements from the list. Required if before parameter is set. Cannot be used together with first.
reverseBooleanAllows to change the order of the sorting to DESC.false
sortKeyCommunityInvitationSortKeyProvides the possibility to change the query sorting key. Available options: CREATED (sorting by the invitation creation date) or NAME (by the invitee user context name).CREATED
  query getCommunitySentInvitations {
    getCommunitySentInvitations(communityId: 1, first: 1) {
      edges {
        node {
          id
          created
          inviteeUserContext {
            displayName
            id
            uuid
          }
        }
      }
      totalItems
    }
  }
The list of nodes in the response contains CommunityInvatation object, the full description can be found here.