Skip to main content

InitialData<Inputs>

type InitialData<Inputs> = { [Name in keyof Inputs]: Inputs[Name] extends EagerCollection<infer K, infer V> ? Entry<K, V>[] : Entry<Json, Json>[] };

Initial data for a service's input collections.

The initial data to populate a service's input collections is provided as an association from collection names to arrays of entries.

Type Parameters

Type ParameterDescription
Inputs extends NamedCollectionsCollections provided to the service's createGraph.