Add a fragment for venue fields
This commit is contained in:
1 parent
1be048c0f2
commit
5169805bd2
1 file changed
+23
-20
+23
-20
@@ -107,27 +107,30 @@ VenuePage.propTypes = {
|
||||
export default VenuePage
|
||||
|
||||
export const pageQuery = graphql`
|
||||
query VenueById($id: String!) {
|
||||
wordpressWpVenues(id: { eq: $id }) {
|
||||
id
|
||||
path
|
||||
title
|
||||
slug
|
||||
content
|
||||
floor
|
||||
capacity_legal
|
||||
capacity_standing
|
||||
capacity_sitting
|
||||
used_for
|
||||
bar
|
||||
audio
|
||||
lighting
|
||||
audio_video
|
||||
featured_media {
|
||||
localFile {
|
||||
...FluidImage
|
||||
}
|
||||
fragment VenueFields on wordpress__wp_venues {
|
||||
id
|
||||
path
|
||||
title
|
||||
slug
|
||||
content
|
||||
floor
|
||||
capacity_legal
|
||||
capacity_standing
|
||||
capacity_sitting
|
||||
used_for
|
||||
bar
|
||||
audio
|
||||
lighting
|
||||
audio_video
|
||||
featured_media {
|
||||
localFile {
|
||||
...FluidImage
|
||||
}
|
||||
}
|
||||
}
|
||||
query VenueById($id: String!) {
|
||||
wordpressWpVenues(id: { eq: $id }) {
|
||||
...VenueFields
|
||||
}
|
||||
}
|
||||
`
|
||||
Reference in new issue
Block a user