weaviate-client
    Preparing search index...

    Interface Collections

    interface Collections {
        create<
            TProperties extends Properties
            | undefined = undefined,
            TName = string,
            TVectors extends Vectors | undefined = undefined,
        >(
            config: CollectionConfigCreate<TProperties, TName, TVectors>,
        ): Promise<ICollection<TProperties, TName, TVectors, string | Blob>>;
        createFromJson(
            schemaJson: WeaviateClass,
        ): Promise<ICollection<Properties, string, undefined, string | Blob>>;
        createFromSchema(
            config: WeaviateClass,
        ): Promise<ICollection<Properties, string, undefined, string | Blob>>;
        delete(collection: string): Promise<void>;
        deleteAll(): Promise<void[]>;
        exists(name: string): Promise<boolean>;
        export(name: string): Promise<CollectionConfig>;
        exportToJson(name: string): Promise<WeaviateClass>;
        get<
            TProperties extends Properties
            | undefined = undefined,
            TName extends string = string,
            TVectors extends Vectors | undefined = undefined,
        >(
            name: TName,
        ): ICollection<TProperties, TName, TVectors, string | Blob>;
        listAll(): Promise<CollectionConfig[]>;
        use<
            TName extends string = string,
            TProperties extends Properties | undefined = undefined,
            TVectors extends Vectors | undefined = undefined,
        >(
            name: TName,
        ): ICollection<TProperties, TName, TVectors, string | Blob>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • collection: string

      Returns Promise<void>

    • Returns Promise<void[]>

    • Parameters

      • name: string

      Returns Promise<boolean>