Files
appwrite/docs/examples/1.7.x/server-swift/examples/databases/create-documents.md
T
Chirag Aggarwal 69142048af chore: regen
2025-07-23 20:58:37 +05:30

410 B

import Appwrite

let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key

let databases = Databases(client)

let documentList = try await databases.createDocuments( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documents: [] )