a simple javascript object representation of the query result as type T.
Typeparam
T declares the shape of the plain objects returned. e.g. nsQueryResult2obj<{ companyname, memo }> for a query
that has columns companyname and memo. Including an optional type here ensures strong typing on followup chained
method calls.
Rudimentary conversion of a NS query result to a simple flat plain javascript object. Suitable as an argument to
map()