Skip to content

Pagination support for json array filter result #1224

Open

Description

@sureshkmit

When json.get runs with a filter and returns large amount of results, need an ability to paginate by providing the offset and count attributes.
Example:
Json.get doc '$[?(@.type=="xxx"]' LIMIT 0 10

Activity

  1. LiorKogan commented on Jul 27, 2024

    @LiorKogan
    Contributor

    @sureshkmit thank you for your suggestion. This can be valuable indeed. We will consider adding cursor support in a future version.

  2. leppaott commented on Aug 9, 2024

    @leppaott

    +1 Also tried if I could get same kind of behavior with slicing operator like:

    "$.[?(@.timestamp>10)][0:100]"
    

    To get first 100 items or so but apparently it returns an empty list even though it seems like a list. Possibly it's because it'd work only for actual array field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions