Skip to content

Instantly share code, notes, and snippets.

@OllieJT
Created May 13, 2019 15:48
Show Gist options
  • Save OllieJT/df938f021c454c21160729e916829d9a to your computer and use it in GitHub Desktop.
Save OllieJT/df938f021c454c21160729e916829d9a to your computer and use it in GitHub Desktop.
export const query = graphql`
query ClientProjectQuery($uid: String!) {
prismicClient(uid: { eq: $uid }) {
uid
first_publication_date
last_publication_date
data {
title {
text
}
subtitle {
text
}
description {
text
}
thumbnail {
alt
url
dimensions {
width
height
}
}
seo_title
seo_description
seo_thumbnail {
url
}
client_name
client_alias
client_avatar {
alt
copyright
url
dimensions {
width
height
}
small {
alt
copyright
url
dimensions {
width
height
}
}
medium {
alt
copyright
url
dimensions {
width
height
}
}
}
client_colour
client_logo {
alt
copyright
url
dimensions {
width
height
}
}
client_tweet {
url
width
embed_url
type
version
title
author_name
author_url
provider_name
provider_url
html
}
content {
... on PrismicClientContentVideo {
slice_type
id
primary {
link {
height
title
author_url
version
provider_url
type
width
provider_name
thumbnail_url
html
author_name
embed_url
cache_age
name
}
}
}
... on PrismicClientContentTweet {
slice_type
id
primary {
account
link {
url
width
embed_url
type
version
title
author_name
author_url
provider_name
provider_url
thumbnail_url
thumbnail_width
thumbnail_height
html
name
}
}
}
... on PrismicClientContentImages {
slice_type
id
items {
image {
alt
copyright
url
dimensions {
width
height
}
}
caption {
html
text
}
}
}
... on PrismicClientContentText {
slice_type
id
}
}
}
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment