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

x/appwrite/src/services/database.ts>Database#createDocument

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Database.prototype.createDocument
import { Database } from "https://deno.land/x/appwrite@0.4.0/src/services/database.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.

Type Parameters

T extends unknown

Parameters

collectionId: string
data: object
optional
read: string[]
optional
write: string[]
optional
parentDocument: string
optional
parentProperty: string
optional
parentPropertyType: string

Returns

Promise<T>