Getting data from subscription (.On function) #62
-
Hello, The documentation seems to not state any details on how exactly I should be taking the data out of the response payload for an .On function. Replication is enabled in Supabase, then: If I would to take the example from documentation and modify it to get some more data:
All that I could get from all of the payload data that is passed, is that I was e.g. doing an update, gathering the column names of 'City' Table in this case. OldRecord and Record seem to have no data being passed in through? What do I do to grab the changed data? I guess I could work around this that some data has been pass through and use a .Get elsewhere, but I guess that's not the cleanest solution, any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
On my phone at the moment, but you probably want: |
Beta Was this translation helpful? Give feedback.
On my phone at the moment, but you probably want:
args.Response.Model<T>()
! I need to clarify the docs.