ask-and-trust - v1.1.0
    Preparing search index...

    AnswersResolver

    Handles all GraphQL queries and mutations related to survey answers, as well as tracking which users answered which surveys.

    Index

    Constructors

    Methods

    • Query to retrieve a specific survey answer by ID.

      Parameters

      • userId: number
      • questionId: number

      Returns Promise<null | Answers>

      A Promise resolving to a Answers object, or null if not found.

      This query returns a single survey answer with its related question and answered record.