OBJECT

OptionType

An advert's option type (e.g. colour, size, shape).

link GraphQL Schema definition

  • type OptionType implements Node {
  • appliedTo: AppliedToEnum!
  • category: PurposeEnum! @deprecated( reason: "This field is deprecated. Use appliedTo and fieldType instead." )
  • description: String!
  • displayName: String!
  • externalIds: [ExternalID!]!
  • fieldType: FieldTypeEnum!
  • id: ID!
  • # This is the ID stored in the Marketplacer database.
  • legacyId: Int!
  • # The name of the option type, mostly for internal organisation.
  • name: String!
  • # 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.
  • optionValues(after: String, before: String, first: Int, last: Int): OptionValuesConnection
  • optional: Boolean!
  • # In which position to put the option when displayed in a list of options.
  • position: Int!
  • presentation: String
  • # 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.
  • prototypes(after: String, before: String, first: Int, last: Int): PrototypesConnection!
  • }