Posts
Posts, categories, tags, and image collections
Posts
posts
Stores posts. Supports version management (drafts).
| Field | Type | Description | Required |
|---|---|---|---|
thumbnail | upload | Thumbnail image (post-images) | |
title | text | Title | ✓ |
subtitle | text | Subtitle | |
slug | slug | URL slug (auto-generated) | |
categories | relationship[] | Categories (post-categories) | |
tags | relationship[] | Tags (post-tags) | |
content | richText | Body content (Lexical, includes Iframe/Player blocks) |
const response = await client.from('posts').find({
where: { _status: { equals: 'published' } },
sort: '-createdAt',
limit: 10
})posts supports draft/publish version management. To query only published posts, use the _status: { equals: 'published' } filter.
post-categories
Stores post categories.
| Field | Type | Description | Required |
|---|---|---|---|
title | text | Category name | ✓ |
slug | slug | URL slug (auto-generated) | |
description | textarea | Description | |
parent | relationship | Parent category (hierarchical) |
post-tags
Stores post tags.
| Field | Type | Description | Required |
|---|---|---|---|
title | text | Tag name | ✓ |
slug | slug | URL slug (auto-generated) | |
description | textarea | Description |
post-images
Stores post images. Upload collection (mimeTypes: image/*)
| Field | Type | Description | Required |
|---|---|---|---|
alt | text | Alt text |