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<Collection<TProperties, TName, TVectors>>;
        createFromJson(
            schemaJson: WeaviateClass,
        ): Promise<Collection<Properties, string, undefined>>;
        createFromSchema(
            config: WeaviateClass,
        ): Promise<Collection<Properties, string, undefined>>;
        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,
        >(
            name: TName,
        ): Collection<TProperties, TName>;
        listAll(): Promise<CollectionConfig[]>;
        use<
            TName extends string = string,
            TProperties extends Properties | undefined = undefined,
            TVectors extends Vectors | undefined = undefined,
        >(
            name: TName,
        ): Collection<TProperties, TName, TVectors>;
    }
    Index

    Methods

    • Parameters

      • collection: string

      Returns Promise<void>