Skip to main content

parseCursor

talawa-api


talawa-api / resolvers/UserTag/usersToAssignTo / parseCursor

Function: parseCursor()

> parseCursor(__namedParameters): ParseGraphQLConnectionCursorResult<string>

Parses the cursor value for the usersToAssignTo connection resolver.

This function is used to parse the cursor value provided to the usersToAssignTo connection resolver.

Parameters

__namedParameters

ParseGraphQLConnectionCursorArguments

Returns

ParseGraphQLConnectionCursorResult<string>

An object containing the parsed cursor value or an array of errors if the cursor value is invalid.

See

  • User - The User model used to interact with the users collection in the database.
  • DefaultGraphQLArgumentError - The type definition for the default GraphQL argument error.
  • ParseGraphQLConnectionCursorArguments - The type definition for the arguments provided to the parseCursor function.
  • ParseGraphQLConnectionCursorResult - The type definition for the result of the parseCursor function.

Defined in

src/resolvers/UserTag/usersToAssignTo.ts:171