Saving Supabase Realtime Data to Local Database and Identifying Event Types

Actions & Logic

I would like to point out that the realtime feature provided by Supabase is incredibly useful. I am seeking information on how to save a piece of data received in realtime to a local database. The data coming from Supabase is returned as NEW and OLD, and I would like to know how to access these values. Additionally, I need to determine the event type of this data (e.g., INSERT, UPDATE, or DELETE). Could you help me with this?

What have you tried so far?

So far, I have successfully set up Supabase's realtime functionality and can receive data updates in realtime. However, I am unsure how to handle the incoming NEW and OLD values and differentiate between event types such as INSERT, UPDATE, or DELETE. I am also looking for the best approach to store this data in a local database efficiently.

Did you check FlutterFlow's Documentation for this topic?
Yes
1