use the NotionAPILoader class instead.
NotionAPILoader
const loader = new NotionDBLoader({ pageSizeLimit: 10, databaseId: "{databaseId}", notionIntegrationToken: "{notionIntegrationToken}",});const docs = await loader.load(); Copy
const loader = new NotionDBLoader({ pageSizeLimit: 10, databaseId: "{databaseId}", notionIntegrationToken: "{notionIntegrationToken}",});const docs = await loader.load();
Loads the documents from Notion based on the specified options.
An array of Document objects.
Optional
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Use this.load() and splitter.splitDocuments() individually. Loads the documents and splits them using a specified text splitter.
this.load()
splitter.splitDocuments()
Deprecated
use the
NotionAPILoader
class instead.Example