I am making successful calls to query a Notion Database, but the data that I am getting from the API call is just not consistent with the actual data from Notion.
I've been pulling my hair out, as I can't figure out what could possibly be causing the inconsistency. Am I doing anything wrong here?
Here is the filter that I am using on the query:
const filter = {
property: '_Inbox?',
formula: {
checkbox: {
equals: true,
},
},
}
The problem is that the response returns me many results for which the formula actually returns false
in Notion. Here is an example:
Sample item properties in Notion
Same item inside the API Response
Everything else seems to work fine, apart from that data inconsistency with formulas. It doesn't seem to be a cache issue either as I also get old items for which the formula doesn't match.
Any help would be greatly appreciated. Or at least a confirmation that I'm not crazy and that there is an issue with the Notion API?
Cheers