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
                | Buffer<ArrayBufferLike>,
            >,
        >;
        createFromJson(
            schemaJson: WeaviateClass,
        ): Promise<
            ICollection<
                Properties,
                string,
                undefined,
                string
                | Buffer<ArrayBufferLike>,
            >,
        >;
        createFromSchema(
            config: WeaviateClass,
        ): Promise<
            ICollection<
                Properties,
                string,
                undefined,
                string
                | Buffer<ArrayBufferLike>,
            >,
        >;
        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
            | Buffer<ArrayBufferLike>,
        >;
        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
            | Buffer<ArrayBufferLike>,
        >;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      Returns Promise<
          ICollection<
              Properties,
              string,
              undefined,
              string
              | Buffer<ArrayBufferLike>,
          >,
      >

    • Parameters

      Returns Promise<
          ICollection<
              Properties,
              string,
              undefined,
              string
              | Buffer<ArrayBufferLike>,
          >,
      >

    • Parameters

      • collection: string

      Returns Promise<void>

    • Returns Promise<void[]>

    • Parameters

      • name: string

      Returns Promise<boolean>