getPendingUserInvitations
query should be called.
The query returns the list of invitations that have been sent to the current user (fetched from the request) and are not accepted yet.
The data contains pagination and sorting options. Supports cursor-based pagination (after
, before
) or limit-based (first
, last
).
The same pagination approach as in other queries is used (for example, getCatalogData).
The following arguments can be used in the query:
Argument | Type | Description | Default |
---|---|---|---|
after | Cursor | Returns results that come after the specified cursor. Should be used together with first parameter. Cannot be used if before is set. | — |
before | Cursor | Returns results that come before the specified cursor. Should be used together with last parameter. Cannot be used if after is set. | — |
first | Integer | Returns up to the first N elements from the list. Required if after parameter is set. Cannot be used together with last . | — |
last | Integer | Returns up to the first N elements from the list. Required if before parameter is set. Cannot be used together with first . | — |
reverse | Boolean | Allows to change the order of the sorting to DESC . | FALSE |
sortKey | InvitationSortKey | Provides the possibility to change the query sorting key. Available options: CREATED (sorting by the creation date) or NAME (by the initiator user context name). | CREATED |
UserInvatation
object, the full example can be found here.