CMS / foldkit-cms-drizzle

ServedContent

interface · packages/cms-drizzle/src/index.ts:64

interface ServedContent<P = any> {
  readonly type: Content<string, any, any, any>
  readonly entity: AnyEntity
  readonly binding: AnyEntityBinding
  readonly create: MutationSource<P, DrizzleDatabase>
  readonly update: MutationSource<P, DrizzleDatabase>
}

A content type as the server holds it: its declaration, its Entity with the guards attached that its binding was bound from, the binding of its table, and the application's own handlers of its two publish mutations. What publishing a post does stays the application's code.

Members

ServedContent.type

property · packages/cms-drizzle/src/index.ts:65

readonly type: Content<string, any, any, any>

ServedContent.entity

property · packages/cms-drizzle/src/index.ts:67

readonly entity: AnyEntity

type.entity with the guard set's rules attached: Post.pipe(Guards.attach(G, { … })).

ServedContent.binding

property · packages/cms-drizzle/src/index.ts:68

readonly binding: AnyEntityBinding

ServedContent.create

property · packages/cms-drizzle/src/index.ts:69

readonly create: MutationSource<P, DrizzleDatabase>

ServedContent.update

property · packages/cms-drizzle/src/index.ts:70

readonly update: MutationSource<P, DrizzleDatabase>