Resource<Collections>
Resource provided by a SkipService
.
Resource
s 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 Parameter | Default type | Description |
---|---|---|
Collections extends NamedCollections | NamedCollections | Collections 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
Parameter | Type | Description |
---|---|---|
collections | Collections | Collections provided by the service's createGraph . |
context | Context | Skip Runtime internal state. |
Returns
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
.