getAnswerFromQuery(query: string , worksheetId: string ) : Promise< {answer: AnswerService , suggestion: any } >
Get answer from natural language query
Function Parameters
- query
-
-
query: string
-
string
- worksheetId
-
-
worksheetId: string
-
string
Returns
Promise< {answer: AnswerService , suggestion: any } >
Version : SDK: 1.33.1 | ThoughtSpot: 10.3.0.cl
const { answer } = await getAnswerFromQuery('revenue', 'worksheetId');
Defined in : utils/graphql/nlsService/nls-answer-service.ts