Skip to main content

Notifications

Notifications help keep your attendees informed of all the up and comings of your Event.

Notifications can be easily created, updated and deleted in Swapcard.

Object

Retrieve Notifications

This query is designed to retrieve all Notifications associated with an Event on Swapcard.

Parameters

  • eventId - The string value representing the Event Id.
  • search - Enables searching through the notifications related to the event.
  • cursor - Used for cursor-based pagination to collect all notifications.
  • sort - Allows for the sorting of notifications based on specific criteria.

Query

query Notifications_NotificationsList($eventId: ID!, $search: String, $after: String, $sortOrder: SortOrderEnum! = DESC, $statusFilter: [PushNotificationStatusEnum!]) {
event(id: $eventId) {
pushNotifications(
search: $search
filter: {status: $statusFilter}
cursor: {first: 25, after: $after}
sort: {field: SENT_AT, order: $sortOrder}
) {
pageInfo {
hasNextPage
endCursor
totalItems
__typename
}
nodes {
...Notifications_SendTestModalFragment
...NotificationList_NotificationFragment
__typename
}
__typename
}
}
}

fragment Notifications_SendTestModalFragment on PushNotification {
id
translations {
language
title
message
__typename
}
__typename
}

fragment NotificationList_NotificationFragment on PushNotification {
id
title
message
translations {
language
title
message
__typename
}
status
scheduledAt
redirection {
... on PushNotificationExhibitorRedirection {
exhibitor {
id
__typename
}
__typename
}
... on PushNotificationPlanningRedirection {
planning {
id
__typename
}
__typename
}
... on PushNotificationEventRedirection {
event {
id
title
__typename
}
__typename
}
... on PushNotificationExternalUrlRedirection {
externalUrl
__typename
}
__typename
}
targets {
... on PushNotificationParentTarget {
id
parentId
match
__typename
}
... on PushNotificationTarget {
id
parentId
match
__typename
}
... on PushNotificationEventGroupTarget {
id
parentId
match
groups {
id
name
__typename
}
__typename
}
... on PushNotificationCommunityProfileTarget {
id
parentId
match
communityProfiles {
id
userId
firstName
lastName
jobTitle
organization
photoUrl
__typename
}
__typename
}
... on PushNotificationExhibitorMemberTarget {
id
parentId
match
exhibitors {
id
name
__typename
}
__typename
}
... on PushNotificationPlanningAttendeeTarget {
id
parentId
match
plannings {
id
title
__typename
}
__typename
}
... on PushNotificationEventAttendeeTarget {
id
parentId
match
events {
id
title
__typename
}
__typename
}
__typename
}
targetedProfiles {
totalCount
__typename
}

__typename
}

Variables

{
"eventId": "RXZlbnRfMQ==",
"page": 1
}