laravel-notion-api icon indicating copy to clipboard operation
laravel-notion-api copied to clipboard

Support paging on relation properties

Open farez opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

At the moment, when retrieving a page using the pages() endpoint, the result returns a maximum of 25 references for each relation property.

Describe the solution you'd like

To more than 25 references inside a relation property, Notion requires us to use the "Retrieve a page property item" endpoint along with paging, documented here: https://developers.notion.com/reference/retrieve-a-page-property

This issue and solution are also described in this article: https://notionmastery.com/pushing-notion-to-the-limits/#prop-refs-api

I don't know if this endpoint is already in this package (I can't find any documentation on it), so if it isn't, would it be possible to add it?

Thanks!

farez avatar May 16 '23 20:05 farez

Yeah, this endpoint is currently not implemented.

If there is some free time in the next few weeks I might fit it in the v1.2.0, however I think it will be a feature for v1.3.0. I'll keep you updated as best as I can.

johguentner avatar Jun 19 '23 17:06 johguentner

No problem! Thanks.

farez avatar Jun 26 '23 10:06 farez