Insert/Update
Insert
const keys = Categories.set()
.field(CategoriesField.CategoryName, "Custom Category")
.save();Update
...
const customCatgoryId = keys[0].CategoryID;
Categories.set()
.field(CategoriesField.CategoryID, customCatgoryId)
.field(CategoriesField.CategoryName, "My Category")
.save();Last updated