Content type represents published content items with compiled BindJS code ready for rendering.
Type Definition
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
typeId | ID! | Content type ID |
packageVersion | String! | Package version for component resolution |
name | String! | Content name |
description | String! | Content description |
content | String! | JSON content structure |
compiled | String! | Standalone BindJS code |
tags | [String!]! | Content tags for categorization |
locale | String | Content locale (e.g., “en-US”) |
contentType | ContentType! | Related content type |
resolved | ResolvedPackage! | Full package data with dependencies |
resolvedRef | ResolvedPackageRef! | Package IDs for normalized caching |
createdAt | DateTime! | Creation timestamp |
updatedAt | DateTime! | Last update timestamp |
Field Details
content
The content field contains the JSON structure of the content data:compiled
The compiled field contains standalone BindJS code that can be executed directly:resolved vs resolvedRef
Choose based on your use case:- resolved: Full package data inline (simpler client implementation)
- resolvedRef: IDs only for normalized caching (smaller payloads, efficient caching)
Example Queries
Basic Content
Content with Full Package Data
Content with Caching References
Related Types
- ContentType - Defines content structure
- Resolved Package - Package resolution types
- ContentUpdate - Real-time content updates
