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