Interface ResultObserver

interface ResultObserver {
    onError?: ((error) => void);
    onRecord?: ((record) => void);
    onSuccess?: ((summary) => void);
    onVariables?: ((variables, queryPreamble?) => void);
}

Properties

onError?: ((error) => void)

Event handler triggered when an error occurs

Type declaration

onRecord?: ((record) => void)

Event handler triggered when a record is available

Type declaration

    • (record): void
    • Parameters

      Returns void

onSuccess?: ((summary) => void)

Event handler triggered after a successful execution

Type declaration

    • (summary): void
    • Parameters

      • summary: any

      Returns void

onVariables?: ((variables, queryPreamble?) => void)

Event handler triggered when variables are available. This should be the first event triggered during a query

Type declaration

    • (variables, queryPreamble?): void
    • Parameters

      • variables: string[]
      • Optional queryPreamble: QueryPreamble

      Returns void