I've been getting an error:
Invalid document structure: Missing required attribute "board_id"
when trying to add a document to a collection even though I added this. Here's how the Javascript function looks like:
api.createColumn({ title: columnName, board_id: bId });
and in the column collection, I defined the title and board attributes. What's wrong?.
P. S. The bId
represents the id of the board that the column belongs to.
Can you please share the code for the createColumn function?
Oh, so sorry Steve, I realised I had not passed a parameter to the function. So sorry. I'll make sure to review my code for mistakes before making a post in the support channel. So sorry again.
[SOLVED] Unable to add document to collection
Recommended threads
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.