method
App.FindCollectionPreview
Read the exact token-scoped draft without a session.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
token | string | The token value. |
collection | string | The collection value. |
documentID | string | The documentID value. |
Returns
The declared result.
(store.Document, error)How it works
The token must match resource type, slug, and ID and is revoked/fenced by permanent deletion. Global equivalents are also available.
Full signature
func (application *App) FindCollectionPreview(
ctx context.Context,
token,
collection,
documentID string,
) (store.Document, error)