Work with API

I tried to use API to insert item/record into a collection Article1 , but it is not successful.
I write code below:

import wixData from ‘wix-data’;
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here…
let newArticle = {
Title: “This is most beautiful place”,
Continent: “Asia”,
Country: “Vietnam”,
Content: “good”
};
wixData.insert(“Article1”, newArticle);
});

Before Preview the collection is


After Preview the collection is


we can see one black item/record have insert into the collection Article1. Thank you in advance, hope someone can find the problem.

Hi,
Notice that the name of the field (for example Title) should be inside quotation marks (“Title”).
Let me know if you managed to fix that.

Good luck :slight_smile: