In the usage example, the name was Doc, which would generate a data object allDocs representing the collection of pages of this database (see databaseId). And it would add a type definition for Doc, representing the shape of the data object created from your content.
#databaseId
string (required)
The ID of the database used to generate the schema.
You can find the ID of the database in the URL: notion.so/my-org/fe26b972ec3f4b32a1882230915fe111
#properties
Options to configure how properties should be used to generate the data shape for the document type. See the properties types reference for more information
#computedFields
Computed fields can be calculated on the fly rather than being read directly from the content source.
Here's an example that transforms the page title to a slug.
Provides a description for the generated type definition.
#automaticImport
boolean
The Notion source automatically import all properties of your database.
If thoses properties can contain sensitive information you can set this option to true and only properties defined in properties will be in your schema.
#importContent
boolean
Notion requires a request for each pages to query their content. (That can lead to other requests)
As Notion can be slow, you can disable this feature if you only use the page properties.
#query
This option allows you to sort and filter your database.
Example:
In this example only published posts will be queried ordered by name.