Closed Koustavd18 closed 1 month ago
@Koustavd18 Also, we need a change to fetch the schema whenever we fetch logs.
@Koustavd18
To determine the exact type definition for LogStreamQueryWithFields
,
Try different scenarios (no-data, diff time range, non-existing streams, etc) and send multiple queries, and examine the results. This change is critical since a normal response without any params is an array but with fields=true
it is an object.
This object may or may not contain fields and data keys.
Stating the above, it's better to have a common query function, that will always return an object {fields: string[], records: Log[] }. Just to prevent when we expect an array where its going to be an object response.
This will be addressed in a separate pr.
Update: Use of enhanced query API
using enhanced query api which will fetch the table headers along with data