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
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'
);
}
Recommended threads
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...