@welshare/sdk
    Preparing search index...

    Function readUserRecord

    • passes through Nillion:secretvaults UserClient.readData() allows fetching individual user records

      Parameters

      • keypair: SessionKeypair
      • environment: WelshareApiEnvironment | "production" | "staging" | "preview" | "development"
      • collection: string

        the collection uid (e.g. QuestionnaireResponseSchema.schemaUid)

      • documentId: string

        the document uid (e.g. the _id of the record)

      Returns Promise<{ [key: string]: unknown }>

      the record data, an object.