Search
Search
addItems
addItems
Add new items or update existing ones if their IDs match.
await collectionItem.addItems([ { id: "1", slug: "item-1", fieldData: { [nameField.id]: { type: "string", value: "Eric" }, [ageField.id]: { type: "number", value: 47 }, }, }, ])
Parameters
items: ManagedCollectionItemInput[]
– An array of Items to add or update.
Returns
Promise<void>