updated docs on queryToArray and queryToStruct