import { GraphQLID, GraphQLInt, GraphQLObjectType } from "graphql"
import { connectionDefinitions } from "graphql-relay"
import Artwork from "schema/artwork"
import EditionSet from "schema/edition_set"
import { amount } from "schema/fields/money"

export const OrderLineItemType = new GraphQLObjectType({
  name: "OrderLineItem",
  fields: () => ({
    id: {
      type: GraphQLID,
      description: "ID of the order line item",
    },
    artwork: {
      type: Artwork.type,
      description: "Artwork that is being ordered",
      resolve: (
        { artworkId },
        _args,
        _context,
        { rootValue: { artworkLoader } }
      ) => artworkLoader(artworkId),
    },
    edition_set: {
      type: EditionSet.type,
      description: "Edition set on the artwork",
      resolve: ({ editionSetId }) => editionSetId,
    },
    price: amount(({ priceCents }) => priceCents),
    quantity: {
      type: GraphQLInt,
      description: "Quantity of items in this line item",
    },
  }),
})

export const {
  connectionType: OrderLineItemConnection,
  edgeType: OrderLineItemEdge,
} = connectionDefinitions({
  nodeType: OrderLineItemType,
})

@@ -239,16 +239,54 @@
 s/money%22
+%0Aimport date from %22schema/fields/date%22
 %0A%0Aexport
@@ -730,18 +730,17 @@
  edition
-_s
+S
 et: %7B%0A  
@@ -924,16 +924,58 @@
 Cents),%0A
+    updatedAt: date,%0A    createdAt: date,%0A
     quan

Add updated/created and renamed editionset