OBJECT

Product

link GraphQL Schema definition

  • type Product {
  • coverImage: Image
  • createdAt: ISO8601DateTime
  • currentSale: Sale
  • description: String
  • files: [ProductFileType!]
  • id: ID!
  • isDigitalContent: Boolean
  • name: String
  • # Quantity of negative ratings
  • negativeRatingsCount: Int
  • # Quantity of neutral ratings
  • neutralRatingsCount: Int
  • number: Int
  • # Quantity of positive ratings
  • positiveRatingsCount: Int
  • purchaseItems: [OrderItemType!]
  • # Returns true if the product was already bought by the current user
  • purchased: Boolean
  • # Rating given by the current user
  • ratingGiven: Int
  • # Average value of ratings
  • ratingsAvg: Float
  • # Quantity of ratings
  • ratingsCount: Int
  • sales: [Sale!]
  • unit: String
  • updatedAt: ISO8601DateTime
  • user: User
  • }