Skip to main content

notion.notion.onupdateddatabaseitems

Home > @runlightyear/notion > Notion > onUpdatedDatabaseItems

Notion.onUpdatedDatabaseItems() method

On Updated Database Items

Signature:
static onUpdatedDatabaseItems(props: OnUpdatedDatabaseItemsProps): string;

Parameters

ParameterTypeDescription
propsOnUpdatedDatabaseItemsProps
Returns:

string

Example

On updated database items

import { Notion } from "@runlightyear/notion";

Notion.onUpdatedDatabaseItems({
name: "onUpdatedDatabaseItems",
title: "On Updated Database Items",
pollingFrequency: 1,
run: async ({ data }) => {
console.log("Updated database items:", data);
},
});