Skip to content

qanary-component-helpers/get-question

This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.

  • Package: @leipzigtreechat/qanary-component-helpers
  • Source file: packages/qanary-component-helpers/src/get-question.ts

Fetches the raw question from given question url

function fetchRawQuestion(questionUrl: string, origin: string): void

Fetches the raw question from given question url

Parameters

  • questionUrl (string): the url of the question
  • origin (string): the origin for the question request, e.g the origin of qanary pipeline Defined at: line 11
function getQuestion(message: IQanaryMessage, origin: string): Promise<string | null>

Gets the question from the graph given in the message

Parameters

  • message (IQanaryMessage): the message containing the graph and endpoint
  • origin (string): the origin for the question request, e.g the origin of qanary pipeline Returns
  • Promise<string | null>: the asked question Defined at: line 33