Invitation
An Invitation is a pending request for a user to join a Group. Once accepted, the invitation becomes a GroupMember record.
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
email | AWSEmail! | Email address of the invitee |
created | AWSDateTime | When the invitation was created |
modified | AWSDateTime | When the invitation was last modified |
permission | GroupPermission | Permission level to grant (ADMINISTER, EDIT, READ, etc.) |
Query
Invitations are accessed via Group.invitationConnection:
query GetGroupInvitations {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
invitationConnection {
invitations {
id
email
created
modified
permission
}
}
}
}
Related
- Group — the group being invited to
- GroupMember — the resulting membership after acceptance