The Consonance GraphQL API
  • Getting started
  • Bibliographic
    • Select filtered products and their work
    • Select works and their products
    • Select products filtered by price and format
    • Select products filtered by work attributes
    • Select works and their relevant marketing material
    • Sample AI/Tip Sheet
  • Production
    • Select works and their product production run details
    • Sample production request form
  • Legal
    • Select contract details
    • Select contract financial information
    • Select contract dates and rights
  • People
    • Select basic person details
    • Select person contact details
    • Select professional details
    • Select person details and contributing works
    • Select organisation details
  • Data exchange
    • Sample custom report sheet
    • Sample dashboard
Powered by GitBook
On this page
  1. Production

Select works and their product production run details

Select works and production run information for their products

Explanation

Product IDs are retrieved for a single work along with their relevant production run information.

query GetWorkById($workId: Int!) {
  work(workSearch: {idEq: $workId}) {
    id
    inHouseWorkReference
    title
    subtitle
    workType
    productionRuns {
      id
      name
      deliveryDate
      productIds
      quantities {
        id
        quantity
        name
        description
        receivedQuantity
        productId
      }
      bindings {
        id
        widthOfBoard
        pageBindingMethod
        trimmingMethod
        endpapers
        caseSpineStyle
        description
        bindingInstructions
        productIds
        products {
          id
        }
      }
      covers {
        id
        paper
        coverType
        coverColoursOutside
        coverColoursOutsideDescription
        coverNotes
        productIds
        products {
          id
        }
      }
      embellishments {
        id
        name
        description
        productIds
        products {
          id
        }
      }
      finishes {
        id
        name
        description
        productIds
        products {
          id
        }
      }
      interiors {
        id
        paper
        textColour
        textColourDescription
        textPrintInstructions
        fsc
        productIds
        products {
          id
        }
      }
    }
    projectStage
    season
  }
}

Define your Work ID variable:

{
  "workId": YOUR_ID_HERE
}
PreviousProductionNextSample production request form

Last updated 1 year ago