-
Notifications
You must be signed in to change notification settings - Fork 2
AllFpb Collection Query on the Article Page
Parinita Mulak edited this page Apr 27, 2024
·
2 revisions
Paster this in https://test-craft.library.ucla.edu/admin/graphiql It returns:
query ArticleNewsDetail {
entry(section: "article", slug: "turtles") {
... on article_article_Entry {
postDate
id
slug
uri
sectionHandle
title
text: summary
externalResourceUrl
dateCreated
heroImage {
... on heroImage_heroImage_BlockType {
id
image {
...Image
}
}
}
category: articleCategories {
id
title
uri
}
contributors {
... on contributors_staffMember_BlockType {
byline
staffMember {
title
to: slug
}
}
... on contributors_externalContributor_BlockType {
byline
title: contributor
}
}
locations: associatedLocations {
id
title
to: uri
... on location_location_Entry {
id
email
}
}
department {
id
title
uri
}
associatedStaffMember {
... on staffMember_staffMember_Entry {
id
email
phone: phoneNumber
jobTitle: staffMemberJobTitle
nameFirst
nameLast
to: slug
consultation: bookAConsultation
departments: staffDepartment(orderBy: "level") {
id
title
}
locations: staffAssociatedLocations {
id
title
to: slug
}
image: staffPortrait {
...Image
}
}
}
allFpb {
... on allFpb_associatedTopicCards_BlockType {
id
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
associatedTopicsFlexiblePageBlock {
... on associatedTopicsFlexiblePageBlock_associatedTopics_BlockType {
id
topics {
title
typeHandle
externalResourceUrl
uri
text: summary
uri
}
}
}
}
... on allFpb_bannerFeatured_BlockType {
id
typeHandle
sectionTitle: titleGeneral
content: bannerFeatured {
... on bannerFeatured_internalContent_BlockType {
id
contentLink {
contentType: sectionHandle
title
to: uri
summary
eventDescription
projectCategory: format
articleCategory: articleCategories {
title
}
projectByline1: meapProjectTopic {
... on meapProjectTopics_Category {
id
title
}
}
startDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
startDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
articleByline1: staffMember {
id
slug
uri
url
title
}
articleByline2: postDate
articleLocations: associatedLocations {
id
title
to: uri
}
projectLocations: region {
... on meapProjectRegion_Category {
id
title
}
}
heroImage {
... on heroImage_heroImage_BlockType {
image {
...Image
}
}
}
}
}
... on bannerFeatured_externalContent_BlockType {
id
image {
...Image
}
title: titleGeneral
summary
alignment
byline1
byline2
to: buttonUrl
category
contentType
}
}
}
... on allFpb_cardWithImage_BlockType {
id
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
cardWithImage {
id
... on cardWithImage_internalContent_BlockType {
id
typeHandle
contentLink {
id
contentType: sectionHandle
to: uri
title
text: summary
eventDescription
projectCategory: format
articleCategory: articleCategories {
title
}
projectByline1: meapProjectTopic {
... on meapProjectTopics_Category {
id
title
}
}
articleByline1: staffMember {
id
to: uri
title
}
articleByline2: postDate
ongoing
startDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
startDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
eventType {
... on eventType_Category {
id
title
}
}
associatedLocations {
id
title
to: uri
}
projectLocations: region {
... on meapProjectRegion_Category {
id
title
}
}
heroImage {
... on heroImage_heroImage_BlockType {
id
image {
...Image
}
altText
}
}
}
}
... on cardWithImage_externalContent_BlockType {
id
typeHandle
title: titleGeneral
image {
...Image
}
byline1
byline2
category
text: summary
to: externalLink
}
}
}
... on allFpb_form_BlockType {
id
form
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
}
... on allFpb_highlight_BlockType {
id
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
highlight {
... on highlight_internalContent_BlockType {
id
typeHandle
contentLink {
id
contentType: sectionHandle
to: uri
title
text: summary
eventDescription
projectCategory: format
articleCategory: articleCategories {
title
}
projectByline1: meapProjectTopic {
... on meapProjectTopics_Category {
id
title
}
}
articleByline1: staffMember {
id
to: uri
title
}
articleByline2: postDate
ongoing
startDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDateWithTime @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
startDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
endDate @formatDateTime(format: "Y-m-d\\TH:i", timezone: "America/Los_Angeles")
eventType {
... on eventType_Category {
id
title
}
}
associatedLocations {
id
title
to: uri
}
projectLocations: region {
... on meapProjectRegion_Category {
id
title
}
}
heroImage {
... on heroImage_heroImage_BlockType {
id
image {
...Image
}
altText
}
}
}
}
... on highlight_externalContent_BlockType {
id
typeHandle
title: titleGeneral
image {
...Image
}
byline1
byline2
category
text: summary
to: externalLink
}
}
}
... on allFpb_impactNumbersCarousel_BlockType {
id
typeHandle
sectionTitle: titleGeneral
blocks: impactNumbersCarousel {
... on impactNumbersCarousel_impactNumbersCarousel_BlockType {
id
largeText: impactNumber
mediumText: impactText
smallDescriptor: summary
image {
...Image
}
}
}
}
... on allFpb_mediaGallery_BlockType {
dataId: id
sectionTitle: titleGeneral
sectionSummary: summary
mediaGallery {
dataId: id
captionTitle: captionHeading
captionText: caption
altText
sortOrder
... on mediaGallery_image_BlockType {
item: imageFile {
...MediaAsset
}
}
... on mediaGallery_audio_BlockType {
item: audioFile {
...MediaAsset
}
embedCode: audioEmbedCode
coverImage {
...MediaAsset
}
}
... on mediaGallery_video_BlockType {
item: videoFile {
...MediaAsset
}
embedCode: embedCode
coverImage {
...MediaAsset
}
}
}
}
... on allFpb_mediaWithText_BlockType {
dataId: id
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
mediaWithText {
... on mediaWithText_mediaEmbed_BlockType {
titleLink: titleEmbed
description
coverImage {
...MediaAsset
}
buttonText
buttonUrl
embedCode
typeMedia
}
... on mediaWithText_mediaUpload_BlockType {
titleUpload
description
buttonText
buttonUrl
coverImage {
...MediaAsset
}
item: upload {
...MediaAsset
}
typeMedia
}
}
}
... on allFpb_pullQuote_BlockType {
id
typeHandle
pullQuote {
... on pullQuote_pullQuote_BlockType {
text
attribution
}
}
}
... on allFpb_richText_BlockType {
richText
typeHandle
sectionTitle: titleGeneral
}
... on allFpb_simpleCards_BlockType {
id
typeHandle
sectionTitle: titleGeneral
sectionSummary: summary
cards: simpleCards {
... on simpleCards_internalServiceOrResource_BlockType {
id
typeHandle
contentLink {
id
uri
slug
title
summary
externalResourceUrl
}
}
... on simpleCards_externalServiceOrResource_BlockType {
id
typeHandle
title: titleGeneral
summary
externalLink
}
}
}
... on allFpb_callToAction_BlockType {
id
typeHandle
callToAction {
... on callToAction_callToAction_BlockType {
id
titleCta
summary
icon
buttonText
buttonUrl: buttonLink
backgroundColor
}
}
}
... on allFpb_impactNumberCards_BlockType {
id
typehandle
sectionSummary: summary
sectionTitle: titleGeneral
impactNumberCards {
... on impactNumberCards_impactNumberCard_BlockType {
id
title: titleGeneral
text: description
impactNumber
}
}
}
}
}
}
}
fragment Image on AssetInterface {
id
src: url(transform: "fullscreen")
height(transform: "fullscreen")
width(transform: "fullscreen")
srcset(sizes: ["375", "960", "1280", "1920", "2560"])
alt: title
focalPoint
}
fragment MediaAsset on AssetInterface {
dataId: id
src: url(transform: "fullscreen")
srcset(sizes: ["375", "960", "1280", "1920", "2560"])
height(transform: "fullscreen")
width(transform: "fullscreen")
title
focalPoint
kind
type: mimeType
alt: altText
}