-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Description
Using this piece of code to add document it result in an error also into the /console I am unable to find button to add document to collection.
What am I doing wrong ?
Future result = database.createDocument(
collectionId: '<my id was here>',
data: [ // Rules
{
"label": "Name",
"key": "name",
"type": "text",
"default": "Empty Name",
"required": true,
"array": false
},
{
"label": "Release Year",
"key": "releaseYear",
"type": "numeric",
"default": 1970,
"required": true,
"array": false
},
{
"label": "Notes",
"key": "notes",
"type": "text",
"default": null,
"required": false,
"array": true
}
],
read: [],
write: [],
);
Metadata
Metadata
Assignees
Labels
No labels