Exhibitors
An exhibitor is a company or a group that shows its work at an event (gathering in the schema, selected with gatheringId). The Exhibitor type holds the name, the description, the contact data, the location, the sponsor level, and the images.
Queries and mutations
| Field | Use |
|---|---|
exhibitors |
Lists the exhibitors of an event. |
createExhibitor |
Creates an exhibitor. Returns the new exhibitor. |
updateExhibitor |
Changes an exhibitor. Returns the changed exhibitor. |
deleteExhibitor |
Deletes an exhibitor. Returns the deleted exhibitor. |
The query takes gatheringId as an ID!. The mutations take gatheringId and id as an Int!.
List the exhibitors
exhibitors takes gatheringId and filters. filters is an ExhibitorFilters value. Scalars lists the four filter fields.
query ListExhibitors($gatheringId: ID!) {
exhibitors(gatheringId: $gatheringId) {
id
name
description
website
location {
name
}
feature {
id
label
}
sponsorLevel {
name
}
iconImage(style: "high_res")
headerImage
participantTypes {
name
}
relatedLinks {
name
url
}
}
}
{
"data": {
"exhibitors": [
{
"id": "701",
"name": "Acme Robotics",
"description": "<p>Robots for every task.</p>",
"website": "https://example.com",
"location": { "name": "Booth 12" },
"feature": { "id": "41", "label": "Exhibitors" },
"sponsorLevel": { "name": "Gold" },
"iconImage": "https://example.com/exhibitor_icons/701/high_res.png",
"headerImage": null,
"participantTypes": [],
"relatedLinks": []
}
]
}
}
An exhibitor also has the fields terms, participantTypes, and relatedLinks. You can read them. You cannot set them in an exhibitor mutation.
Images
iconImage and headerImage return the address of an image. Both fields take the argument style. If you do not send style, the value is original. If the exhibitor has no image, the field is null. An unknown style returns the error invalid style.
| Field | Style | Size |
|---|---|---|
iconImage |
original |
The uploaded image, scaled down to fit in 600 by 600 pixels. |
iconImage |
small |
50 by 50 pixels at most. |
iconImage |
low_res |
75 by 75 pixels at most. |
iconImage |
high_res |
150 by 150 pixels at most. |
iconImage |
three_x |
225 by 225 pixels at most. |
headerImage |
original |
The uploaded image. |
headerImage |
low_res |
320 pixels wide at most. |
headerImage |
high_res |
640 pixels wide at most. |
headerImage |
three_x |
960 pixels wide at most. |
Create an exhibitor
createExhibitor takes gatheringId and an ExhibitorCreateParams value in exhibitor. The field name is required.
mutation CreateExhibitor($gatheringId: Int!) {
createExhibitor(
gatheringId: $gatheringId
exhibitor: {
name: "Acme Robotics"
description: "<p>Robots for every task.</p>"
website: "https://example.com"
email: "info@example.com"
location: { name: "Booth 12" }
sponsorLevel: { name: "Gold" }
feature: { label: "Exhibitors" }
}
) {
id
name
location {
name
}
sponsorLevel {
name
}
feature {
label
}
}
}
{
"data": {
"createExhibitor": {
"id": "701",
"name": "Acme Robotics",
"location": { "name": "Booth 12" },
"sponsorLevel": { "name": "Gold" },
"feature": { "label": "Exhibitors" }
}
}
}
These rules apply to the input fields.
featuretakes aFeatureParamsvalue. Thelabelis the label of an exhibitors feature of the event. If you do not sendfeature, Touchpoint puts the exhibitor in the first exhibitors feature of the event. If the event has no exhibitors feature, Touchpoint creates one.sponsorLeveltakes aSponsorLevelParamsvalue. If the level does not exist, Touchpoint creates it.locationtakes aLocationParamsvalue with aname. If the event has no location with this name, Touchpoint creates it.
A create does not always make a new exhibitor. If the event has an exhibitor with the same name, Touchpoint changes that exhibitor.
Change an exhibitor
updateExhibitor takes gatheringId, the id of the exhibitor, and an ExhibitorUpdateParams value in exhibitor. All fields are optional.
Send feature in each update. If you do not send it, Touchpoint moves the exhibitor to the first exhibitors feature of the event.
mutation UpdateExhibitor($gatheringId: Int!, $id: Int!) {
updateExhibitor(
gatheringId: $gatheringId
id: $id
exhibitor: {
feature: { label: "Exhibitors" }
location: { name: "Booth 14" }
telephone: "+1 555 0100"
}
) {
id
name
telephone
location {
name
}
feature {
label
}
}
}
{
"data": {
"updateExhibitor": {
"id": "701",
"name": "Acme Robotics",
"telephone": "+1 555 0100",
"location": { "name": "Booth 14" },
"feature": { "label": "Exhibitors" }
}
}
}
If you do not send location or sponsorLevel, the exhibitor keeps its location and its sponsor level.
Delete an exhibitor
deleteExhibitor takes gatheringId and the id of the exhibitor. It returns the exhibitor that it deleted.
mutation DeleteExhibitor($gatheringId: Int!, $id: Int!) {
deleteExhibitor(gatheringId: $gatheringId, id: $id) {
id
name
}
}
{
"data": {
"deleteExhibitor": {
"id": "701",
"name": "Acme Robotics"
}
}
}
Related types
Feature, SponsorLevel, Location, and ParticipantType are shared types. See Types.