mariosimao / notion-sdk-php

A complete Notion SDK for PHP developers.
https://mariosimao.github.io/notion-sdk-php/
MIT License
156 stars 24 forks source link

No findAll methods for databases() or pages()? #352

Closed Pr4w closed 8 months ago

Pr4w commented 8 months ago

Hi,

I've been tinkering with this SDK, after starting a project with 5am-code/laravel-notion-api.

On 5am-code/laravel-notion-api there are methods to get all pages / all databases in a workspace, such as:

# Limit to pages Notion::search() ->onlyPages() ->query() ->asCollection();

# Limit to databases Notion::search() ->onlyDatabases() ->query() ->asCollection();

There doesn't seem to be an equivalent method with this API, is there a specific reason for this? It would be really useful, your API is much easier to use, but it's a shame I can't seem to find this feature.

Thanks, Mark

Pr4w commented 8 months ago

Found it in the documentation.