Additional settings for a custom collection dispatcher.
Type Parameters
TContext extends Context<TContextData>
The type of the context. Context or RequestContext.
Methods
setCounter(counter: CustomCollectionCounter<TParam, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>
Sets the counter for the custom collection.
setFirstCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>
Sets the first cursor for the custom collection.
setLastCursor(cursor: CustomCollectionCursor<TParam, TContext, TContextData>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>
Sets the last cursor for the custom collection.
Since 0.7.0
authorize(predicate: ObjectAuthorizePredicate<TContextData, string>): CustomCollectionCallbackSetters<TParam, TContext, TContextData>
Specifies the conditions under which requests are authorized.