hunk.code_window: instance (J.FromJSON a) => J.FromJSON (ActionDefinition a) where
     parseJSON = J.withObject "ActionDefinition" $ \o ->
       ActionDefinition
         <$> o J..:  "arguments"
         <*> o J..:  "output_type"
         <*> o J..:? "kind" J..!= ActionSynchronous -- Synchronous is default action kind
         <*> o J..:? "headers" J..!= []
         <*> o J..:? "forward_client_headers" J..!= False
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:       <$> o J..:? "arguments" J..!= []
  
hunk.file_path: server/src-lib/Hasura/RQL/Types/Action.hs
hunk.type: replace
file: type: bulk
  args:
  - type: run_sql
    args:
      sql: |
        create table hge_tests.test_t1(
            c1 int,
            c2 text
        );
  - type: track_table
    args:
      schema: hge_tests
      name: test_t1
  - type: create_event_trigger
    args:
      name: t1_insert
      table:
        schema: hge_tests
        name: test_t1
      insert:
        columns: "*"
      webhook: http://127.0.0.1:5592
  