Skip to main content

notion.querydatabaseprops

Home > @runlightyear/notion > QueryDatabaseProps

QueryDatabaseProps interface

Signature:
interface QueryDatabaseProps 

Required Properties

PropertyModifiersTypeDescription
databaseIdNotionIdIdentifier for a Notion database.

Optional Properties

PropertyModifiersTypeDescription
filter?FilterWhen supplied, limits which pages are returned based on the filter conditions.
filterProperties?string

(DOES NOT WORK YET)

A list of page property value IDs associated with the database. Use this param to limit the response to a specific page property value or values for pages that meet the filter criteria.

pageSize?numberThe number of items from the full list desired in the response. Maximum: 100
sorts?Array<SortCriteria>When supplied, orders the results based on the provided sort criteria.
startCursor?stringWhen supplied, returns a page of results starting after the cursor provided. If not supplied, this endpoint will return the first page of results.