Skip to main content

Event

The Event object represents a Swapcard Event. An Event is linked to a Community and owned by an Organization.

Heads up!

Community is a recent feature that acts as a hub on top of events. More information and related queries will be published soon.

Object

Fetch one Event by id

This query can be used to fetch all information for one single Event.

Arguments

  • eventId - This is string value of the Event Id

Query

query EventById($eventId: ID!) {
event(id: $eventId) {
id
slug
title
beginsAt
endsAt
createdAt
htmlDescription
banner {
imageUrl
embeddedVideo {
... on YoutubeEmbeddedVideo {
videoId
}
}
}
address {
place
street
city
zipCode
state
country
}
isLive
updatedAt
language
timezone
totalPlannings
totalExhibitors
totalSpeakers
groups {
id
name
peopleCount
}
}
}

Variables

{
"eventId": "RXZlbnDY1Nc4"
}

Fetch multiple Events by ids

This query can be used to fetch all basic information about multiple Events.

Arguments

  • eventIds - This is an array of Event Ids. The array can be used to send more than one Event Id value separated by commas.

Query

query events($eventIds: [String!]) {
events(ids: $eventIds) {
id
slug
title
beginsAt
endsAt
createdAt
htmlDescription
banner {
imageUrl
embeddedVideo
}
address {
place
street
city
zipCode
state
country
}
isLive
updatedAt
}
}

Variables

{
"eventIds": [
"RXZlbnDY1Nc4",
"RXZlbnTUxMI0"
]
}