*[_type=='event' && _id =='SOME_ID'] {
"participants": *[_id in ^.participants[]._ref] | order(firstName) {
_id,
firstName,
lastName,
position,
company->{
_id,
name,
url,
companyId,
enonicId,
"imageUrl": logo.asset->url,
type,
slotSets,
contacts[]->{
_id,
firstName,
lastName,
position,
company,
companyId,
code,
phone,
email,
"imageUrl": image.asset->url
},
"employees": *[_type=="participant" && company->_id == ^._id],
uvps[]->{
_id,
title,
synopsis,
description,
cluster,
categories,
references,
trl,
attachements[] {
...asset-> {
url,
"name": originalFilename
}
}
},
},
bio,
linkedin,
code,
phone,
email,
"imageUrl": image.asset->url,
organizer->{
_id,
name,
logo,
url
},
"referedByCompany": *[_type=='company' && references(^._id)],
role,
notifications
}
}