Zvec Node.js API Reference
    Preparing search index...

    Class ZVecCollectionSchema

    Collection Schema.

    Index

    Constructors

    Methods

    Properties

    Constructors

    Methods

    • Retrieves a scalar field schema by its name.

      Parameters

      • fieldName: string

        The name of the field to retrieve.

      Returns ZVecFieldSchema

      The ZVecFieldSchema object.

      Error if the field with the given name is not found.

    • Retrieves a vector field schema by its name.

      Parameters

      • vectorName: string

        The name of the vector field to retrieve.

      Returns ZVecVectorSchema

      The ZVecVectorSchema object.

      Error if the vector field with the given name is not found.

    • Gets the array of scalar field schemas.

      Returns ZVecFieldSchema[]

      The array of ZVecFieldSchema objects.

    • Returns string

      A formatted string representation of the collection schema.

    Properties

    name: string

    Get the name of the collection.