
I'm following the documentation on https://appwrite.io/docs/quick-starts/node and am getting a Database not found error. I've confirmed the database is getting created, but any time I try to access it programmatically it fails. I'm using node-appwrite 13.0.0
TypeScript
const databases = new sdk.Databases(client);
var todoDatabase;
var todoCollection;
async function prepareDatabase() {
//This works
todoDatabase = await databases.create(
sdk.ID.unique(),
'TodosDB'
);
//It errors here
todoCollection = await databases.createCollection(
todoDatabase.$id,
sdk.ID.unique(),
'Todos'
);
}
TL;DR
Documentation is being followed to create a database using node-appwrite 13.0.0, but facing 'Database not found' error. The issue arises when trying to create a collection within the database programmatically.
Solution: Ensure that the collection creation process is handled correctly. Double-check the syntax and parameters used for creating the collection within the database.Recommended threads
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain appwrite.qnarweb.com (CNAME pointing to fra.cloud.appwrite.io with Cloudflare proxy disabled) but encountering a TLS ce...
