```swift import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let documentsDB = DocumentsDB(client) let transaction = try await documentsDB.createOperations( transactionId: "", operations: [ [ "action": "create", "databaseId": "", "collectionId": "", "documentId": "", "data": [ "name": "Walter O'Brien" ] ] ] // optional ) ```