talawa-api / Exports / utilities/graphqlConnectionFactory
▸ generateConnectionObject<T1
, T2
>(args
, allFetchedObjects
, getNodeFromResult
): InterfaceConnectionResult
<T1
>
Name | Type |
---|---|
T1 |
extends Object |
T2 |
extends Object |
Name | Type |
---|---|
args |
CursorPaginationInput |
allFetchedObjects |
null | T2 [] |
getNodeFromResult |
GetNodeFromResultFnType <T1 , T2 > |
InterfaceConnectionResult
<T1
>
src/utilities/graphqlConnectionFactory.ts:106
▸ getFilterObject(args
): FilterObjectType
| null
Name | Type |
---|---|
args |
CursorPaginationInput |
FilterObjectType
| null
src/utilities/graphqlConnectionFactory.ts:75
▸ getLimit(limit
): number
Name | Type |
---|---|
limit |
number |
number
src/utilities/graphqlConnectionFactory.ts:46
▸ getSortingObject(direction
, sortingObject
): Record
<string
, number
>
Name | Type |
---|---|
direction |
"BACKWARD" | "FORWARD" |
sortingObject |
Record <string , number > |
Record
<string
, number
>
src/utilities/graphqlConnectionFactory.ts:53
▸ graphqlConnectionFactory<T
>(): InterfaceConnection
<T
>
Name |
---|
T |
InterfaceConnection
<T
>