The get function

get is a built in function to TAFFYdb and returns an Array of objects, one per record, of the source qObj it is called on.

You may have noticed a lot of the examples in these docs end with .get as the last method used and then we console.log the result. This is because get is very useful for debugging queries and understanding the structures returned at differing stages of a query.

Run the code below then examin the results to get a feel for get.

// log all questions data from a qObj

let results = r.questions().get()
console.log(results)
var r = await syrup.fetchRespondentData({
  projectID: '8fcbb2dc-8093-40d7-6c41-88ecccdcb2aa',
  pageID: 'b8b70dca-a5b8-4a1a-4a8f-f60254fea95c',
  respondentID: 'HNTEST12',
})

let results = r.questions().get()
console.log(results)