Skip to content

KnownSystemFields

KnownSystemFields<S> = SelectionOf<S> extends "*" | DynamicSelection ? unknown : [Extract<Exclude<keyof S, SelectionKey>, `$${string}`>] extends [never] ? unknown : object

Defined in: src/query/selection.ts:207

Rejects a $ key that is not an entity field, $attributes or $attributeSchema at compile time. An attribute name cannot start with $, so such a key can only be a typo: unknown when there is none, and an object naming the offenders, which no selection satisfies, otherwise.

S