Skip to content

BeechCMS


BeechCMS / @beechcms/client / ServerContentResource

Interface: ServerContentResource<TRow> ​

Server Client Content Resource: Content mutation and query operations (create, update, list, get).

Type Parameters ​

TRow ​

TRow

Methods ​

create() ​

create(input, options?): Promise<BeechResult<Single<TRow>>>

Parameters ​

input ​

Partial<TRow>

options? ​

RequestOptions

Returns ​

Promise<BeechResult<Single<TRow>>>


get() ​

get(selector, options?): Promise<BeechResult<Single<TRow>>>

Parameters ​

selector ​

{ id: string; } | { slug: string; }

options? ​

RequestOptions

Returns ​

Promise<BeechResult<Single<TRow>>>


list() ​

list(query?, options?): Promise<BeechResult<Listable<TRow>>>

Parameters ​

query? ​

ListQuery<TRow>

options? ​

RequestOptions

Returns ​

Promise<BeechResult<Listable<TRow>>>


update() ​

update(id, input, options?): Promise<BeechResult<Single<TRow>>>

Parameters ​

id ​

string

input ​

Partial<TRow>

options? ​

RequestOptions

Returns ​

Promise<BeechResult<Single<TRow>>>