I tried all the things, but the functions is always getting timed out, after about 15-17 seconds, heres the code
import 'dart:async';
import 'package:dart_appwrite/dart_appwrite.dart';
Future<void> start(final req, final res) async {
final client = Client();
final database = Databases(client);
final document = await database.createDocument(
databaseId: '6489ef1fb252d4ac177d',
collectionId: '6489ef320a5a9b83cd78',
documentId: 'unique()',
data: {...},
);
res.json({document.toMap()});
}