@dxos/app-toolkit - v0.16.0
    Preparing search index...

    Variable collectionConst

    collection: (
        name: string,
        objects: Ref.Ref<Obj.Unknown>[],
    ) => Effect.Effect<
        Collection.Collection,
        SampleSpaceError,
        Database.Service
        | SampleSpace.Root,
    > = ...

    Adds a named collection holding objects and appends it to the space root.

    The root only ever holds collections, so every collection-item object (documents, sketches, sheets) belongs to a themed collection rather than sitting loose on the root.

    Type declaration

      • (
            name: string,
            objects: Ref.Ref<Obj.Unknown>[],
        ): Effect.Effect<
            Collection.Collection,
            SampleSpaceError,
            Database.Service
            | SampleSpace.Root,
        >
      • Parameters

        • name: string
        • objects: Ref.Ref<Obj.Unknown>[]

        Returns Effect.Effect<
            Collection.Collection,
            SampleSpaceError,
            Database.Service
            | SampleSpace.Root,
        >