Skip to content

Support nested nextPageParam values #142

Closed
@adamgoose

Description

@adamgoose

Is your feature request related to a problem? Please describe.
My API returns the nextPageParam as meta.next. Passing --nextPageParam meta.next results in broken typescript generation as local variables don't support dots.

getNextPageParam: response => (response as { meta.next: number }).meta.next

Describe the solution you'd like
Support dots in the nextPageParam name and traverse the response accordingly.

Describe alternatives you've considered
I'll have to manually define the infinite query in the meantime, utilizing the generated API client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions