Skip to main content

ObjectWithAttributes Interface

An object with attributes.

Added in Saleor 3.22
interface ObjectWithAttributes {
assignedAttribute(slug: String!): AssignedAttribute
assignedAttributes(limit: PositiveInt = 100): [AssignedAttribute!]!
}

Fields​

assignedAttribute ● AssignedAttribute​

Get a single attribute attached to the object by attribute slug.

Added in Saleor 3.22
slug ● String!​

Slug of the attribute

assignedAttributes ● [AssignedAttribute!]!​

List of attributes assigned to the object.

Added in Saleor 3.22
limit ● PositiveInt​

Maximum number of attributes to return. Default is 100.

Implemented By​

Page object ● Product object ● ProductVariant object ● User object