DigitalContent
Represents digital content associated with a product variant.
type DigitalContent implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(key: String!): String
privateMetafields(keys: [String!]): Metadata
metadata: [MetadataItem!]!
metafield(key: String!): String
metafields(keys: [String!]): Metadata
useDefaultSettings: Boolean!
automaticFulfillment: Boolean!
contentFile: String!
maxDownloads: Int
urlValidDays: Int
urls: [DigitalContentUrl!]
productVariant: ProductVariant!
}
Fields
DigitalContent.id
● ID!
non-null scalar miscellaneous
The ID of the digital content.
DigitalContent.privateMetadata
● [MetadataItem!]!
non-null object miscellaneous
List of private metadata items. Requires staff permissions to access.
DigitalContent.privateMetafield
● String
scalar miscellaneous
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
DigitalContent.privateMetafield.key
●String!
non-null scalar miscellaneous
DigitalContent.privateMetafields
● Metadata
scalar miscellaneous
Private metadata. Requires staff permissions to access. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
DigitalContent.privateMetafields.keys
●[String!]
list scalar miscellaneous
DigitalContent.metadata
● [MetadataItem!]!
non-null object miscellaneous
List of public metadata items. Can be accessed without permissions.
DigitalContent.metafield
● String
scalar miscellaneous
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
DigitalContent.metafield.key
●String!
non-null scalar miscellaneous
DigitalContent.metafields
● Metadata
scalar miscellaneous
Public metadata. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
DigitalContent.metafields.keys
●[String!]
list scalar miscellaneous
DigitalContent.useDefaultSettings
● Boolean!
non-null scalar miscellaneous
Default settings indicator for digital content.
DigitalContent.automaticFulfillment
● Boolean!
non-null scalar miscellaneous
Indicator for automatic fulfillment of digital content.
DigitalContent.contentFile
● String!
non-null scalar miscellaneous
File associated with digital content.
DigitalContent.maxDownloads
● Int
scalar miscellaneous
Maximum number of allowed downloads for the digital content.
DigitalContent.urlValidDays
● Int
scalar miscellaneous
Number of days the URL for the digital content remains valid.
DigitalContent.urls
● [DigitalContentUrl!]
list object products
List of URLs for the digital variant.
DigitalContent.productVariant
● ProductVariant!
non-null object products
Product variant assigned to digital content.
Interfaces
Node
interface miscellaneous
An object with an ID
ObjectWithMetadata
interface miscellaneous
Returned By
digitalContent
query
Member Of
DigitalContentCountableEdge
object ● DigitalContentCreate
object ● DigitalContentUpdate
object ● DigitalContentUrl
object ● ProductVariant
object