Rank 3: Container
Hello, in the relations documentation it is not seen that it is necessary to add the $id. But it throws error 500 if it is not added.
await databases.createDocument( databaseId: 'marvel', collectionId: 'movies', documentId: ID.unique(), data: { 'title': 'Spiderman', 'year': 2002, 'reviews': [ { "\$id": ID.unique(), //add id 'author': 'Bob', 'text': 'Great movie!' }, { "\$id": ID.unique(), //add id 'author': 'Alice', 'text': 'Loved it!' } ] }, );