googleapis / googleapis/google-cloud-dart

provide facilities to make it easier for users to use paginated APIs

Open
#29 0 comments 1 reaction 0 assignees View on GitHub
type: feature request
Dominant language
Dart
Stars
23
Forks
15
Avg merge
1d 9h
Merged PRs (30d)
21

Description

Some APIs support pagination - being able to specify the max. number of items returned, and being able to pass in a `nextPageToken` to page through the results. We should make it easier for users to work with these types of APIs. That might look like something like generating a 2nd method with a stream of results, and having that method automatically handle re-querying the backend for more results.

```dart
Future listItems(...) {
...
}

Stream listItemsStreaming(...) {
...
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.