Skip to content

Commit

Permalink
Merge pull request #508 from GetStream/update-docs
Browse files Browse the repository at this point in the history
docs: update docs
  • Loading branch information
szuperaz authored Nov 22, 2023
2 parents 1483d4b + b32538c commit e92241e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/stream-chat-angular/src/lib/channel.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ export class ChannelService<
message: StreamMessage<T>
) => StreamMessage<T> | Promise<StreamMessage<T>>;
/**
* By default the SDK uses an offset based pagination, you can change/extend this by providing your own custom paginator method. It will be called with the result of the latest channel query.
* By default the SDK uses an offset based pagination, you can change/extend this by providing your own custom paginator method.
*
* The method will be called with the result of the latest channel query.
*
* You can return either an offset, or a filter using the [`$lte`/`$gte` operator](https://getstream.io/chat/docs/javascript/query_syntax_operators/). If you return a filter, it will be merged with the filter provided for the `init` method.
*/
customPaginator?: (channelQueryResult: Channel<T>[]) => NextPageConfiguration;
private channelsSubject = new BehaviorSubject<Channel<T>[] | undefined>(
Expand Down

0 comments on commit e92241e

Please sign in to comment.