method

App.FindCollectionPreview

Read the exact token-scoped draft without a session.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
tokenstringThe token value.
collectionstringThe collection value.
documentIDstringThe 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)

Source core/preview.go:96

Related types

  • App

    A resolved application bound to operation services.

  • Document

    A stored document with status and version metadata.