parseCursor
talawa-api / resolvers/Organization/advertisements / parseCursor
Function: parseCursor()
> parseCursor(__namedParameters
): ParseGraphQLConnectionCursorResult
<string
>
Parses the cursor value for the advertisements
connection resolver.
This function is used to parse the cursor value provided in the arguments of the advertisements
connection resolver.
Parameters
__namedParameters
ParseGraphQLConnectionCursorArguments
& object
Returns
ParseGraphQLConnectionCursorResult
<string
>
An object containing the parsed cursor value, or an array of errors if the cursor value is invalid.
See
- Advertisement - The Advertisement model used to interact with the advertisements collection in the database.
- DefaultGraphQLArgumentError - The type definition for the default GraphQL argument error.
- ParseGraphQLConnectionCursorArguments - The type definition for the arguments of the parseCursor function.
- ParseGraphQLConnectionCursorResult - The type definition for the result of the parseCursor function.