notion-py
notion-py copied to clipboard
Relations onto deleted blocks are still included
It seems that when there's a Relation to a record, and that record is then deleted, Notion keeps the ID of the deleted record in the Relation property, so it shows up in the results when you query the Relation field. It would probably be best to filter out records that aren't alive
when returning results of a Relation lookup, so that we match what the Notion UI does. If the page is later undeleted, it would reappear in the Relation again (since we didn't remove the ID under the hood).
Any chance of a quick example of how to do this? Struggling with deleted entries still visible in API results.