Skip to main content
Module

x/appwrite/mod.ts>Databases#createIndex

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Databases.prototype.createIndex
Re-export
import { Databases } from "https://deno.land/x/appwrite@10.0.0/mod.ts";

Create index

Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request. Attributes can be key, fulltext, and unique.

Parameters

databaseId: string
collectionId: string
key: string
type: IndexType
attributes: string[]
optional
orders: string[]