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

x/appwrite/mod.ts>Database#createDocument

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

Create Document

Create a new Document. Before using this route, you should create a new collection resource using either a server integration API or directly from your database console.

Parameters

collectionId: string

collectionId

data: DocumentData

data

read: Array<any>

read

write: Array<any>

write

optional
parentDocument: string = [UNSUPPORTED]

parentDocument

optional
parentProperty: string = [UNSUPPORTED]

parentProperty

optional
parentPropertyType: string = [UNSUPPORTED]

parentPropertyType

Returns

Promise<string>

Promise