Entity / foldkit-entity/conformance

RelationalCase

interface · packages/entity/src/conformance/relational.ts:106

interface RelationalCase {
  readonly what: string
  readonly body: AnyQuery
  readonly input: Readonly<Record<string, unknown>>
  readonly expected: ReadonlyArray<string>
  readonly viewer?: EntityRef | null
}

Members

RelationalCase.what

property · packages/entity/src/conformance/relational.ts:107

readonly what: string

RelationalCase.body

property · packages/entity/src/conformance/relational.ts:108

readonly body: AnyQuery

RelationalCase.input

property · packages/entity/src/conformance/relational.ts:110

readonly input: Readonly<Record<string, unknown>>

Encoded, as ConformanceCase.input.

RelationalCase.expected

property · packages/entity/src/conformance/relational.ts:112

readonly expected: ReadonlyArray<string>

The ids of the visible rows the body matches, by id.

RelationalCase.viewer

property · packages/entity/src/conformance/relational.ts:114

readonly viewer?: EntityRef | null

Who asks, or null for a visitor; a case that reads no viewer has none.