📙List Collections

Lists all the collections the user has

Prerequisites

Requires a user auth token. See the API Auth section.

Listing Collections

Takes in a name of the database db and returns a list of all collections in that db.

import mindplug from "@/src/mindplugAPI"; // base instance

mindplug.post("/collection/list", {
    db: "walmart",
});

Note the collections are automatically created when you add new data to the database.

Sample Response

{
    "data": [
        {
            "collection": "OfficeSupplies",
            "totalVectors": 0,
            "collectionId": "591ed632-cf38-403e-8e63-be87999d4115"
        }
    ],
    "count": 1
}

Last updated