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
- Relations within the same table
Hello, I'm currently building a sort of dictionary (a literal one) and thus I need words (which is one single table of words in my database) to be able to have ...
- [SOLVED] Query.search() returning all ro...
When I use Query.search() instead of returning rows with the keywords provided it just returns all the rows in the table.
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...