go-notion icon indicating copy to clipboard operation
go-notion copied to clipboard

Outdated SearchFilter?

Open DylanMeeus opened this issue 3 years ago • 0 comments

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:

DylanMeeus avatar Jun 14 '21 13:06 DylanMeeus