
Hi, I am using express and i'm getting an error with the database.createDocument: {"success":false,"message":"database.createDocument is not a function"}
This only shows if i want to import the database from another file, the config file is looking like this now:
import { Client, Databases } from 'node-appwrite';
const client = new Client();
client
.setEndpoint(process.env.APPWRITE_ENDPOINT)
.setProject(process.env.APPWRITE_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY);
export const database = new Databases(client);
And im importing it like this:
import { database } from '../config/appwrite.js';
and i get the error
The weird thing is the documents are being created, but the error is not dissapearing.
Recommended threads
- Attributes stuck at Processing
the attributes are in processing
- Attributes stuck at processing
Added some attributes to my collection, and they are stuck in processing for over half an hour. Project ID: 684d0539002c85ded9c5
- Attributes in "Processing" state
Hey, all the attributes of all my collections are in a "Processing" state. I've read that we need to create a discord ticket with the project ID. Is it normal a...
