go-notion
go-notion copied to clipboard
Outdated SearchFilter?
Hi,
I'm trying to model this request with this library:
curl --request POST \
--url https://api.notion.com/v1/databases/$DATABASE_ID/query \
--header 'Authorization: Bearer $TOKEN' \
--header 'Content-Type: application/json' \
--header 'Notion-Version: 2021-05-13' \
--data '{
"filter": {
"property": "parent",
"text": {
"contains": "calendar"
}
}
}'
To filter pages for a property called parent
which contains the value calendar
. But in the documentation of SearchFilter
it mentions that the only Property to filter by is object
?
Possibly the notion API changed in the meantime. So I'm just wondering if this will be updated or if I'm not using the library in the correct way :sweat_smile: