Closed AsFal closed 3 years ago
Just specify nil instead ¬ion.DatabaseQuery
Specifying nil for ¬ion.DatabaseQuery
wouldn't allow the use of an empty filter with custom Sort, StartCursor, or PageSize values. This would prevent fetching all the entries from a database with more than 100 entries given the page size limit.
Fixed and released in v0.3.2
.
Description
Impossible to create a DatabaseQuery with an empty DatabseQueryFilter. Fields that do not have empty values (such as embedded structs) cannot be omitted. Source
To Reproduce
Populate your environment variables with valid values for
NOTION_SECRET_API_KEY
andNOTION_DATABASE_ID
and run the following code.Given the following table
I go the following error