Deprecated

use the NotionAPILoader class instead.

Example

const loader = new NotionDBLoader({
pageSizeLimit: 10,
databaseId: "{databaseId}",
notionIntegrationToken: "{notionIntegrationToken}",
});
const docs = await loader.load();

Hierarchy

Implements

Constructors

Properties

databaseId: string
integrationToken: string
notionApiVersion: string
pageSizeLimit: number

Methods

  • Loads the documents from Notion based on the specified options.

    Returns Promise<Document<Record<string, any>>[]>

    An array of Document objects.

  • Loads the documents and splits them using a specified text splitter.

    Parameters

    Returns Promise<Document<Record<string, any>>[]>

    A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.

Generated using TypeDoc