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
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...