Remote / foldkit-remote-server
MemoryConfig
type · packages/remote-server/src/index.ts:873
type MemoryConfig<P> = {
readonly domain: Pick<RemoteDescriptor, 'registry'>
readonly rows: MemoryRows
readonly entities?: ReadonlyArray<EntitySource<P>>
readonly queries?: ReadonlyArray<QuerySource<P>>
readonly mutations?: (store: MemoryStore) => ReadonlyArray<MutationSource<P>>
readonly authorize?: Readonly<
Record<string, NonNullable<EntitySource<P>['authorize']>>
>
readonly filter?: Readonly<
Record<string, NonNullable<EntitySource<P>['filter']>>
>
readonly shared?: Readonly<Record<string, ReadonlyArray<string>>>
readonly readable?: (
principal: P,
row: (
entity: string,
id: string,
) => Option.Option<Readonly<Record<string, unknown>>>,
) => Effect.Effect<MemoryReadable, RemoteServerError>
readonly principal?: P
}What RemoteServer.memory is made from. See memory.