Content base types
Describes content base types that are registered in GraphQL schema for querying content in Optimizely CMS (SaaS).
Optimizely Content Management System (CMS) (SaaS) registers a set of base schema types that content types inherit from. The following diagram examines the type hierarchy. It includes examples of the user-defined content types NewsPage
, LandingExperience
, ImageMedia
, TeaserBlock
, and HeadingElement
to show how user-defined content types relate to the base types.
Note
The base types are prefixed with
_
to distinguish them from user-defined content types.
Example queries
The base types can be used to query over sets of content types. To query overall content types, you can use the common base type _Content
:
query AcrossAllContent {
_Content
{
items{
_metadata {
displayName
}
}
}
}
To search over content types of a specific base type, like Image
, then you can use the base type _Image
:
query AcrossAllImages {
_Image
{
items{
_metadata {
displayName
}
}
}
}
Updated about 2 months ago