
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
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Looking for Partner
I'm looking for partner for long-term collaborating. Of course, I'll pay for you. If you are interested, Please DM me.
