Skip to content

No way to return nextCursor using list_resources decorator #759

Open
@rbehal

Description

@rbehal
  • When using the list_resources decorator, there is no way to return the nextCursor if your resources are paginated, as the decorator relies on just a list of Resource being returned
  • Solution: Make a decorator list_paginated_resources that returns a dict with 'resources' and 'nextCursor' or even just the ListResourceResult object itself

Let me know your thoughts on the above and I'm happy to raise a PR with it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions