Showtime
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
- Wrong import maybe?
server side: go client side: next.js
- How do i make an index for a relation
Im trying to have a feature in my app where you search a video by its user but when I try to implement it, I get the error that "creator" needs its own fulltex...
- 401 (Unauthorized) User (role: guests) m...
This error goes away after login but appears again after logout