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: description: Allowlist query with typename
  url: /v1/graphql
  status: 200
  headers:
    X-Hasura-Role: user
  response:
    data:
      user:
      - id: 1
        name: clarke
        __typename: user
        company: Symons
      - id: 2
        name: reckler
        __typename: user
        company:
  query:
    query: |
      query {
        user{
          id
          name
          __typename
          company
        }
      }
  