-
Notifications
You must be signed in to change notification settings - Fork 466
Open
Labels
compat: breaking changeThis is a breaking change to existing functionalityThis is a breaking change to existing functionalitycomponent: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typesneeds: discussionRequires a discussion to proceedRequires a discussion to proceedobject type: mediaRelating to the MediaItem TypeRelating to the MediaItem Typetype: enhancementImprovements to existing functionalityImprovements to existing functionality
Milestone
Description
Currently, we expose a MediaItem type, and it's shape is very much based on Media Items being images.
Media Items can be images, videos, PDFs, .txt, and heaps of other things.
I think we may want to revisit using Interfaces / Unions to better specify the Type of Media a MediaItem is.
Not 100% sure what this should look like, but I believe it's something we should think about.
Possibly something like this (needs a lot more thought though):
{
mediaItem {
id
title
...on Image {
someImageProperty
}
...on Video {
duration
someOtherVideoProperty
}
...on PDF {
somePdfProperty
}
}
}
jooola, lightningspirit, kidunot89 and predaytor
Metadata
Metadata
Assignees
Labels
compat: breaking changeThis is a breaking change to existing functionalityThis is a breaking change to existing functionalitycomponent: interfacesRelating to GraphQL Interface TypesRelating to GraphQL Interface Typesneeds: discussionRequires a discussion to proceedRequires a discussion to proceedobject type: mediaRelating to the MediaItem TypeRelating to the MediaItem Typetype: enhancementImprovements to existing functionalityImprovements to existing functionality
Type
Projects
Status
💬 In Discussion