Selecting Row After Trigger
I have a database trigger that calls a function after a row is inserted. However, in my function I am not able to select the row as it hasnt been saved yet. The trigger is saying is an after insert, so shouldn't the record be saved? I am trying to just run a function after a row is inserted in the database. My suspicion is that it's because the function returns the record after the http call is made. So while the function may have the record attributes, they aren't actually there yet. For additional context, this is all trying to index records in my database to a search service after they are inserted (and eventually updated/deleted etc) Any help could be appreciated!
Trigger
Function
Edge Function
And then in the above url it's an edge function that tries to select that product but no product is returned. The function has access to the record as its provided in the send_to_webhook function, but retrieving a record by that id returns no results.
Trigger
Function
Edge Function
And then in the above url it's an edge function that tries to select that product but no product is returned. The function has access to the record as its provided in the send_to_webhook function, but retrieving a record by that id returns no results.