         display
         city
         state
-        postal_code
+        postal_code: postalCode
         country
         address
-        address_2
-        day_schedules {
-          start_time
-          end_time
-          day_of_week
+        address_2: address2
+        day_schedules: daySchedules {
+          start_time: startTime
+          end_time: endTime
+          day_of_week: dayOfWeek
         }
       }
-      artworks {
-        id
-        _id
-        __id
-        href
-        collecting_institution
-        image {
-          url(version: "large")
-          width
-          height
-          aspect_ratio
-          placeholder
+      artworksConnection(first: 100) {
+        edges {
+          node {
+            id: slug
+            _id: internalID
+            __id: id
+            href
+            collecting_institution: collectingInstitution
+            image {
+              url(version: "large")
+              width
+              height
+              aspect_ratio: aspectRatio
+              placeholder
+            }
+            partner {
+              href
+              id
+              type
+              name
+            }
+            artists {
+              public: isPublic
+              href
+              name
+            }
+            date
+            title
+            sale_message: saleMessage
+            is_inquireable: isInquireable
+          }
         }
-        partner {
-          href
-          id
-          type
-          name
-        }
-        artists {
-          public
-          href
-          name
-        }
-        date
-        title
-        sale_message
-        is_inquireable
       }
       artists {
         id

{ NODE_ENV } = require '../../config'
{ stringifyJSONForWeb } = require '../../components/util/json'
PartnerShow = require '../../models/partner_show'
metaphysics = require '../../../lib/metaphysics'
DateHelpers = require '../../components/util/date_helpers'
ViewHelpers = require './helpers/view_helpers'

query = """
  query ShowMetadataQuery($id: String!) {
    partner_show(id: $id) {
      _id
      id
      created_at
      start_at
      end_at
      name
      displayable
      has_location
      press_release(format: HTML)
      description
      status
      href
      counts {
        artworks
        eligible_artworks
      }
      events {
        description
        title
        start_at
        end_at
        event_type
      }
      partner {
        id
        _id
        href
        name
        type
        is_linkable
        default_profile_id
      }
      fair {
        id
        _id
        profile {
          is_published
        }
        published
        has_full_feature
        name
        href
        start_at
        end_at
        location {
          coordinates {
            lat

      res.locals.ViewHelpers = ViewHelpers
      res.locals.DateHelpers = DateHelpers
      res.locals.jsonLD = JSON.stringify ViewHelpers.toJSONLD data.partner_show if data.partner_show.has_location
      artworks = data.partner_show.artworksConnection.edges.map (edge) -> edge.node
      data.artworkColumns = ViewHelpers.groupByColumnsInOrder(artworks)
      res.render 'index', data
    .catch next
