```swift import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let databases = Databases(client) let document = try await databases.getDocument( databaseId: "", collectionId: "", documentId: "", queries: [], // optional transactionId: "" // optional ) ```