Skip to main content

Resource<Collections>

Resource provided by a SkipService.

Resources make up the public interface of a SkipService, specifying how to respond to reactive requests, either by accessing data from the static computation graph generated in the service's createGraph function or extending it with further reactive computations as needed to handle the request.

Type Parameters

Type ParameterDefault typeDescription
Collections extends NamedCollectionsNamedCollectionsCollections provided to the resource computation by the service's createGraph.

Methods

instantiate()

instantiate(collections, context): EagerCollection<Json, Json>

Build the reactive compute graph of the reactive resource.

Parameters

ParameterTypeDescription
collectionsCollectionsCollections provided by the service's createGraph.
contextContextSkip Runtime internal state.

Returns

EagerCollection<Json, Json>

An eager collection containing the outputs of this resource for the given parameters, produced from the static reactive compute graph output collections of the service's createGraph.