We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd20583 + ec4dec4 commit a17b766Copy full SHA for a17b766
src/lib/SupabaseRealtimeClient.ts
@@ -53,6 +53,7 @@ export class SupabaseRealtimeClient {
53
eventType: payload.type,
54
new: {},
55
old: {},
56
+ errors: payload.errors,
57
}
58
59
enrichedPayload = { ...enrichedPayload, ...this.getPayloadRecords(payload) }
src/lib/types.ts
@@ -53,6 +53,7 @@ export type SupabaseRealtimePayload<T> = {
new: T
/** The previous record. Present for 'UPDATE' and 'DELETE' events. */
old: T
+ errors: string[] | null
export type SupabaseEventTypes = 'INSERT' | 'UPDATE' | 'DELETE' | '*'
0 commit comments