OBJECT

MeasurementUnit

Measurement unit

link GraphQL Schema definition

  • type MeasurementUnit implements Node {
  • # List of adverts implementing the measurement unit
  • #
  • # Arguments
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • adverts(
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): AdvertsConnection! @deprecated( reason: "This was previously used to get the number of adverts associated to the measurement unit. Use advertsCount instead." )
  • # The number of adverts implementing the measurement unit
  • advertsCount: Int!
  • # List of comparable variants implementing the measurement unit
  • #
  • # Arguments
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • comparableVariants(
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): VariantConnection! @deprecated( reason: "This was previously used to get the number of comparable variants implementing the measurement unit. Use variantsCount instead." )
  • # When the record was created
  • createdAt: ISO8601DateTime!
  • id: ID!
  • # The field that represents the measurement unit type
  • measurementType: String!
  • # Full name of measurement unit (eg: kilograms)
  • name: String!
  • # Short code for the measurement unit (eg: kg)
  • short: String!
  • # When the record was last updated
  • updatedAt: ISO8601DateTime!
  • # List of variants implementing the measurement unit
  • #
  • # Arguments
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • variants(
  • after: String,
  • before: String,
  • first: Int,
  • last: Int
  • ): VariantConnection! @deprecated( reason: "This was previously used to get the number of variants implementing the measurement unit. Use variantsCount instead." )
  • # The maximum of the count of variants and comparable variants implementing the
  • # measurement unit
  • variantsCount: Int!
  • }