Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/appwrite/mod.ts>Databases#createEnumAttribute

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

Create enum attribute

Create an enumeration attribute. The elements param acts as a white-list of accepted values for this attribute.

Parameters

databaseId: string
collectionId: string
key: string
elements: string[]
required: boolean
optional
xdefault: string
optional
array: boolean