Skip to content

Class: ID ​

Defined in: node_modules/.pnpm/node-appwrite@23.1.0/node_modules/node-appwrite/dist/id.d.mts:4

Helper class to generate ID strings for resources.

Constructors ​

Constructor ​

new ID(): ID

Returns ​

ID

Methods ​

custom() ​

static custom(id): string

Defined in: node_modules/.pnpm/node-appwrite@23.1.0/node_modules/node-appwrite/dist/id.d.mts:12

Uses the provided ID as the ID for the resource.

Parameters ​

id ​

string

Returns ​

string


unique() ​

static unique(padding?): string

Defined in: node_modules/.pnpm/node-appwrite@23.1.0/node_modules/node-appwrite/dist/id.d.mts:19

Have Appwrite generate a unique ID for you.

Parameters ​

padding? ​

number

Returns ​

string