Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/appwrite/src/services/databases.ts>Databases#createIndex

[READ-ONLY] Official Appwrite Deno SDK 🦕
Latest
method Databases.prototype.createIndex
import { Databases } from "https://deno.land/x/appwrite@11.0.0/src/services/databases.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[]

Returns

Promise<Models.Index>