Optional proxy options, and the default retrieval scope
Optional Readonlytrusted?: booleanWhether to accept lookup responses without validating them against the shape narrowed by
the caller's model.
Enabling it suits only a service trusted to deliver shape-conforming data, as responses then reach the caller unchecked.
Optional Readonlyscope?: StoreScopeThe retrieval scope that fills in the members a lookup scope leaves out, one by one, before the template is checked locally against its bounds and sent to the service.
It is a fallback rather than a ceiling, so it never caps the bounds a lookup states for itself. The service enforces its own bounds as well, so a wide default here admits no more than the service is prepared to serve.
Optional Readonlyfetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>fetch-compatible transport used for every HTTP request.
A configured client adds authentication, custom headers, or other cross-cutting request handling.
The global fetch
An immutable Store proxying the remote REST service
Creates a REST proxy store backed by a remote REST service.
Exposes a remote REST service through the standard Store API, so an application drives it with the same calls as any local backend. Each data operation round-trips to the service over the configured
fetchtransport. The module description details the request and response contract, the validation rules and the miss-code handling.Transaction Isolation — None. REST has no native transaction support: operations apply eagerly with no cross-call isolation, and a execute task that throws after partial server-side mutations does not roll them back.
Mutation Events — Limited to mutations issued through this store; mutations from other clients sharing the remote service are not observed.