Menu

Post image 1
Post image 2
1 / 2
0

Test Notion database queries without a workspace

DEV Community·FetchSandbox·21 days ago
#e7V51pbG
Reading 0:00
15s threshold

Testing a Notion database query sounds simple until you try to do it in a real workspace. You need a workspace. You need an integration token. You need to share the right database with that integration. You need seed pages with the right properties. Then you run the query and hope you did not pollute somebody's actual team dashboard with test rows. The painful part is not POST /v1/databases/{database_id}/query . The painful part is proving the whole shape around it: does the database exist? do the properties match what your app expects? does the filter return the right rows? does the response shape match the code path you are about to ship? can you repeat the test without cleaning up a real Notion workspace?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More