This query loads the user invitations by the organization ID.
General Pattern
{
getUserInvitations(orgID:UUID!){
field_1
field_2 {
nested_field_1
...
}
}
}
Sample Query
query{
getUserInvitations(orgId:"a1dc174d-abf4-47d3-be3c-9281c6eba456"){
id
email
status
}
}
Sample Response
{
"data": {
"getUserInvitations": [
{
"id": "9044a490-4382-4057-87b7-8175058c8895",
"email": "[email protected]",
"status": ""
},
{
"id": "c1ffce64-8f77-4da4-b72b-b85d8d12cb45",
"email": "[email protected]",
"status": ""
},
{
"id": "7978bb99-32c2-42f2-93d1-f385f0ab9af4",
"email": "[email protected]",
"status": ""
},
{
"id": "fdc427c3-cf5b-4a4c-8f71-84ef85c2dee9",
"email": "[email protected]",
"status": ""
},
{
"id": "cd149d2f-ee71-4b69-9a0c-5ceccb21e6c9",
"email": "[email protected]",
"status": ""
},
{
"id": "864d07aa-b3b5-4bb9-8c7b-e68604b5a37b",
"email": "[email protected]",
"status": ""
},
{
"id": "0cc0300c-2cba-4a81-a579-2fd061c3e657",
"email": "[email protected]",
"status": ""
},
{
"id": "12b3f36a-77fd-4ca2-8153-5bed65093852",
"email": "[email protected]",
"status": ""
},
{
"id": "386b527b-d704-41ce-b68b-f5b2f2f1e782",
"email": "[email protected]",
"status": ""
},
{
"id": "82e68862-4080-48e2-ade6-e15095e83757",
"email": "[email protected]",
"status": ""
},
{
"id": "3600c248-9bb7-4106-ae91-cbf3623c898a",
"email": "[email protected]",
"status": ""
},
{
"id": "ae4ee4fd-1db1-484a-9199-5c2e1ca84b3a",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "88d0f39e-efea-4f89-98dd-1d40e9153808",
"email": "[email protected]",
"status": "Pending"
},
{
"id": "d13f3871-24ad-4d0a-a8f1-21a735ee621b",
"email": "[email protected]",
"status": "Pending"
},
{
"id": "5681997b-a5a8-4d82-9946-1a480aeb4252",
"email": "[email protected]",
"status": "Pending"
},
{
"id": "86a68582-02b6-4985-9ea8-f8ff4ca83017",
"email": "[email protected]",
"status": "Pending"
},
{
"id": "15898366-3a36-4633-b347-a777b6c461d4",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "8a05cd12-68ef-4c18-825f-a0b3b9290565",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "73b614fc-3dfb-4e2f-aa97-9d809d7e6cbd",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "73bcc8a1-1ebe-49af-a8c6-c138b663e970",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "81553c03-7677-480f-9cd3-6201b48a4d25",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "60adead7-81dd-4b86-a27b-4d6b9943bf59",
"email": "[email protected]",
"status": "Accepted"
},
{
"id": "f8d24dcd-ee19-4f38-a830-25666a3566ee",
"email": "[email protected]",
"status": "Accepted"
}
]
}
}
Argument
Name | Type | Description | Required |
---|---|---|---|
orgID | UUID | The organization ID. | Yes |
Fields
Name | Type | Description |
---|---|---|
UserInvitations | Object | An object that contains the UserInvitations object information, such as user ID, email, and status. |
Example
Load the user invitations by the organization ID: